-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Eruda support for non-tab view #323
Conversation
Doesn't load on tabs for some reason.
✅ Deploy Preview for curious-biscotti-765c40 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. needs work.
iframe.src = encodedUrl; | ||
|
||
iframe.onload = function() { | ||
let iframeDocument = iframe.contentDocument || iframe.contentWindow.document; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contentDocument should be the fallback. contentWindow is more supported.
Additionally, use iframe.contentWindow?.document
in case it throws and error.
Removed redundant ``` iframeDocument.body.appendChild(script); ```
Added Eruda support for non-tab view
No description provided.