From ae92fc6f02800ff2cc07767cdc6cc543d07d758e Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Mon, 20 May 2013 16:27:08 -0500 Subject: [PATCH] Refactor: Use `Config.origindomain` in two more places --- js/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/client.js b/js/client.js index 7d2e2f084..2d40e2e35 100644 --- a/js/client.js +++ b/js/client.js @@ -67,7 +67,7 @@ getActionPHP: function() { var ret = '/~~' + Config.server.id + '/action.php'; if (Config.testclient) { - ret = 'http://play.pokemonshowdown.com' + ret; + ret = 'http://' + Config.origindomain + ret; } return (this.getActionPHP = function() { return ret; @@ -341,7 +341,7 @@ // over to the HTTPS origin. $(window).on('message', function($e) { var e = $e.originalEvent; - var origin = 'https://play.pokemonshowdown.com'; + var origin = 'https://' + Config.origindomain; if (e.origin !== origin) return; if (e.data === 'init') { e.source.postMessage($.toJSON({