We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b80ce8 commit a59dd39Copy full SHA for a59dd39
static/big_game_script.js
@@ -4,8 +4,8 @@ const link = document.createElement("link");
4
const script = document.currentScript;
5
const gameID = script.getAttribute("data-gameID");
6
const seenPopup = (localStorage.getItem("ccported-popup") == "yes");
7
-const glocation = window.location.hostname;
8
const framed = pageInIframe();
+const glocation =(!framed) ? window.location.hostname : document.location.ancestorOrigins[0];
9
const tGameID = treat(window.gameID);
10
const stlyeLoadPromise = new Promise((r, rr) => {
11
link.onload = () => {
@@ -2274,4 +2274,4 @@ class Stats {
2274
}
2275
2276
2277
-init();
+init();
0 commit comments