Skip to content

Commit 70e97ff

Browse files
authored
Update utils.js
1 parent 524745a commit 70e97ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ let isLandscape = window.matchMedia('(orientation: landscape)').matches;
169169

170170
let isOffline = !window.navigator.onLine;
171171

172+
let isEmbed = (window.top !== window);
173+
172174
if (isMobile) {
173175

174176
body.classList.add('mobile');

0 commit comments

Comments
 (0)