Replies: 1 comment 1 reply
-
As far as API goes I think the best you can do is open a new tab/window with something like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I am developing a vscode extension and running it on a code-server instance. The extension is composed of several commands and a couple of webviews. I am now trying to implement a functionality that requires the extension to be able to navigate away from the current location (the url hosting the code-server instance) but I can't find any way of doing so. Since my extension has a couple of webviews, and those are "just" iframes, I tried something like
window.top.location.href = myNewUrl;
But I get a security error saying that an iframe can not trigger such action.
So my question is, how could I implement such feature? Maybe there's some function or API I could call? Perhaps a listener for specific message using postMessage()?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions