From: Joe Wreschnig Date: Thu, 22 May 2014 10:55:12 +0000 (+0200) Subject: Protocol-relative URL breaks origin checks, use location.protocol. X-Git-Url: https://git.yukkurigames.com/?p=webcart1000.git;a=commitdiff_plain;h=c37c3fa84ddca928c08b31815d6c2e22939e55b3 Protocol-relative URL breaks origin checks, use location.protocol. --- diff --git a/webcart1000.js b/webcart1000.js index 10b96da..101a9fd 100644 --- a/webcart1000.js +++ b/webcart1000.js @@ -10,7 +10,7 @@ (function () { "use strict"; - var ORIGIN = "//yukkurigames.com"; + var ORIGIN = location.protocol + "//yukkurigames.com"; var TARGET = ORIGIN + "/webcart1000/o_o.html"; var wc1kFrame; var wc1kWindow;