Electron provides a new-window
event in the main thread, but TAURI does not.
#10124
Labels
new-window
event in the main thread, but TAURI does not.
#10124
Describe the problem
The following are window-wide event handlers available in Electron that are triggered when a URL is opened in a new window.
However, these events have not yet been implemented in TAURI as far as I can tell.
This event is required when external HTML containing an a tag is loaded and displayed, for example, or when a URL is opened in an iframe (e.g., YouTube embedding) tag.
I am currently working on a project for such a situation.
It is inefficient to change the a tag in JavaScript and add the
target="_blank"
attribute each time.Describe the solution you'd like
So I would like to add a
new-window
event in thelisten
function in the TAURI API.Alternatives considered
No response
Additional context
Please let me know if there are other existing methods that would be better.
Thank you very much.
The text was updated successfully, but these errors were encountered: