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.)
This commit is contained in:
Guangcong Luo
2019-07-24 22:40:07 -04:00
parent e0fd3a44b9
commit 635c09d7ea

View File

@@ -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);