Skip to content

Commit

Permalink
Remove crossdomain issues on load for testclient over https
Browse files Browse the repository at this point in the history
  • Loading branch information
kubetz committed Jun 8, 2015
1 parent b77ab20 commit f467808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
getActionPHP: function() {
var ret = '/~~' + Config.server.id + '/action.php';
if (Config.testclient) {
ret = 'http://' + Config.origindomain + ret;
ret = 'https://' + Config.origindomain + ret;
}
return (this.getActionPHP = function() {
return ret;
Expand Down
2 changes: 1 addition & 1 deletion testclient.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
document.getElementById('loading-message').innerHTML += ' DONE<br />Loading data...';
</script>

<script src="http://play.pokemonshowdown.com/js/config.js"></script>
<script src="https://play.pokemonshowdown.com/js/config.js"></script>
<script src="js/battledata.js"></script>
<script src="data/pokedex-mini.js"></script>
<script src="data/typechart.js"></script>
Expand Down

0 comments on commit f467808

Please sign in to comment.