Skip to content

Commit b570bf8

Browse files
authored
Update big_game_script.js
1 parent d70784d commit b570bf8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

static/big_game_script.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ window.ccPorted = window.ccPorted || {};
296296
if (!text) return null;
297297
return text.split(".").join("-");
298298
}
299+
function pageInFrame() {
300+
try {
301+
return window.self !== window.top;
302+
} catch (e) {
303+
return true;
304+
}
305+
}
299306
function shortcut(keys, cb) {
300307
log(`Creating shortcut for keys ${keys}, calling ${cb.name}`);
301308
var keyMap = {};

0 commit comments

Comments
 (0)