Skip to content

Added Eruda support for non-tab view#323

Merged
xbubbo merged 7 commits intomainfrom
unknown repository
Dec 13, 2023
Merged

Added Eruda support for non-tab view#323
xbubbo merged 7 commits intomainfrom
unknown repository

Conversation

@incognitotgt
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for curious-biscotti-765c40 ready!

Name Link
🔨 Latest commit 268dc05
🔍 Latest deploy log https://app.netlify.com/sites/curious-biscotti-765c40/deploys/6578fb09575b810008c6ca4f
😎 Deploy Preview https://deploy-preview-323--curious-biscotti-765c40.netlify.app/go
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@VillainsRule VillainsRule left a 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;
Copy link
Contributor

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);
```
@xbubbo xbubbo merged commit 80cd39b into UseInterstellar:main Dec 13, 2023
xbubbo added a commit that referenced this pull request Apr 4, 2024
Added Eruda support for non-tab view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants