From 635c09d7eaf2fb2e26071d788fbbc44fc32b7cf9 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Wed, 24 Jul 2019 22:40:07 -0400 Subject: [PATCH] Add temporary fix for Smogtours's lack of HTTPS cert (A full fix would require PS to support running HTTPS on ports other than 443.) --- js/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/client.js b/js/client.js index fc0613653..ac6c1db4e 100644 --- a/js/client.js +++ b/js/client.js @@ -400,6 +400,9 @@ function toId() { this.topbar = new Topbar({el: $('#header')}); if (this.down) { this.isDisconnected = true; + } else if (location.origin === 'https://smogtours.psim.us') { + this.isDisconnected = true; + alert("The Smogtours server does not support HTTPS. Please use http://smogtours.psim.us"); } else { if (document.location.hostname === 'play.pokemonshowdown.com' || Config.testclient) { this.addRoom('rooms', null, true);