Protocol-relative URL breaks origin checks, use location.protocol.
[webcart1000.git] / webcart1000.js
index 10b96da..101a9fd 100644 (file)
@@ -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;