mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 15:22:35 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user