-
-
Save nokimaro/28fbe68b07255db5775d429ed4f2101f to your computer and use it in GitHub Desktop.
Is popup window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Try to guess if the current window is a "popup" | |
window.isPopup = | |
window.isPopup || window.opener || | |
(window.locationbar && window.locationbar.visible === false) || | |
false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment