Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterReinert committed Apr 14, 2024
1 parent 4c1bef2 commit c1908c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions play.pokemonshowdown.com/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ Storage.initPrefs = function () {

if (document.location.hostname !== Config.routes.client) {
$(
'<iframe id="cross_domain_iframe" src="https://' + Config.routes.client + '/crossdomain.php?host=' +
'<iframe src="https://' + Config.routes.client + '/crossdomain.php?host=' +
encodeURIComponent(document.location.hostname) +
'&path=' + encodeURIComponent(document.location.pathname.substr(1)) +
'&protocol=' + encodeURIComponent(document.location.protocol) +
'" style="display: none;"></iframe>'
'" style="display: none;" id="cross_domain_iframe"></iframe>'
).appendTo('body');
} else {
Config.server = Config.server || Config.defaultserver;
Expand Down

0 comments on commit c1908c4

Please sign in to comment.