Created
January 17, 2020 15:03
-
-
Save farskid/761f42b5204b0539954e8cb61f7700f8 to your computer and use it in GitHub Desktop.
List all global variables (custom props added to window object)
This file contains hidden or 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
const iframeEl = document.createElement('iframe'); | |
document.body.appendChild(iframeEl); | |
console.log(Object.keys(window).filter(key => !(key in iframeEl.contentWindow))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment