-
-
Save ynishi2014/8d1d951966d12d49c1eee898b4bacc17 to your computer and use it in GitHub Desktop.
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
<script> | |
let API = false; | |
let win; | |
for (win = window; win.API == null && win.parent != null && win.parent != win; win = win.parent); | |
if (win.API) { | |
API = win.API; | |
console.log("API found"); | |
} else { | |
console.log("API not found"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment