MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / isInSubFrame

Function isInSubFrame

example/tests/gm_menu_test.js:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 };
35
36 const isInSubFrame = () => {
37
38 try {
39 return window.top !== window;
40 } catch {
41 return true;
42 }
43 }
44
45 if (intervalChanging) {
46 // TM: 在打开菜单时,显示会不断改变

Callers 1

gm_menu_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected