initial
This commit is contained in:
7
utils/isIframe.js
Normal file
7
utils/isIframe.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export function isInIframe() {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user