Skip to content

Instantly share code, notes, and snippets.

@kirilkirkov
Created September 7, 2022 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirilkirkov/60ff6d27b2a2da03d42cde85281f6330 to your computer and use it in GitHub Desktop.
Save kirilkirkov/60ff6d27b2a2da03d42cde85281f6330 to your computer and use it in GitHub Desktop.
Instagram in-app browser (WebView) errors with window.opener or window popups
Did you know that instagram webview (when click some link from private message or post) , the window.opener is null?
This is privacy reason.. so if you wants to close window popups, should use history.back(); instead of window.close();,
also the postMessage will not works with window.opener.postMessage ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment