Prevent settings menu scroll on iOS proxy iframe from shifting entire UI (#17024)

This commit is contained in:
Josh Hawkins
2025-03-08 10:13:07 -06:00
committed by GitHub
parent 74ca009b0b
commit cf3c0b2eb5
2 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
export const isInIframe = (() => {
try {
return window.self !== window.top;
} catch (e) {
// If we get a security error, we're definitely in an iframe
return true;
}
})();