Skip to content

Commit a59dd39

Browse files
authored
Update big_game_script.js
1 parent 3b80ce8 commit a59dd39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/big_game_script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const link = document.createElement("link");
44
const script = document.currentScript;
55
const gameID = script.getAttribute("data-gameID");
66
const seenPopup = (localStorage.getItem("ccported-popup") == "yes");
7-
const glocation = window.location.hostname;
87
const framed = pageInIframe();
8+
const glocation =(!framed) ? window.location.hostname : document.location.ancestorOrigins[0];
99
const tGameID = treat(window.gameID);
1010
const stlyeLoadPromise = new Promise((r, rr) => {
1111
link.onload = () => {
@@ -2274,4 +2274,4 @@ class Stats {
22742274
}
22752275
}
22762276

2277-
init();
2277+
init();

0 commit comments

Comments
 (0)