-
Notifications
You must be signed in to change notification settings - Fork 3.5k
maybe fix auth in iframes #1261
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
Changes from 3 commits
151bf8d
d3a9fda
5e50be0
ff8e120
c61b85f
6a69f56
75d3fde
894698b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ | |
| " | ||
| > | ||
| <head> | ||
| <base target="_blank" /> | ||
| <meta charset="utf-8" /> | ||
| <meta | ||
| name="viewport" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,6 +149,14 @@ | |
|
|
||
| async function handle_mount() { | ||
| await tick(); | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we affecting all links on the page?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we want to open them all in a new tab (including any links that are generated via markdown, which is why we need to do it this way), this was previously being done with the |
||
| var a = document.getElementsByTagName("a"); | ||
|
|
||
| for (var i = 0; i < a.length; i++) { | ||
| const target = a[i].getAttribute("target"); | ||
| if (target !== "_blank") a[i].setAttribute("target", "_blank"); | ||
| } | ||
|
|
||
| dependencies.forEach( | ||
| ( | ||
| { targets, trigger, inputs, outputs, queue, backend_fn, frontend_fn }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.