Skip to content

Commit e1d4798

Browse files
authored
Update big_game_script.js
1 parent a59dd39 commit e1d4798

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

static/big_game_script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,7 @@ function emit() {
868868
isFramed: framed,
869869
}
870870
if (framed) {
871-
data["parentDomainHost"] = (window.parent.location.hostname.length > 0) ? window.parent.location.hostname : "unknown";
872-
data["parentDomain"] = window.parent.location;
871+
data["parentDomainHost"] = new URL(window.location.ancestorOrigins[0]).hostname > 0) ? new URL(window.location.ancestorOrigins[0]).hostname : "unknown";
873872
}
874873
log(data);
875874
gtag("event", "play_game", data);

0 commit comments

Comments
 (0)