-
Notifications
You must be signed in to change notification settings - Fork 186
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
webui_exit
does not work when using a link to navigate a page
#228
Comments
Thats because |
Tho with the https://github.com/webui-dev/webui/blob/main/examples/C/serve_a_folder/second.html |
One solution would be to state it as a requirement that page navigation inside the webui application requires a programmatic approach from the backend and adjust the example. |
Right, in I think this has something to do with |
Found the problem. Bindings are ok, that would be weird coz they are in webui.js.. The problem is that the window cant be closed by script if that script didnt open that window. Security measures. And in this case the script ( Its a bug in the example, not WebUI.
Agree. I always had in mind WebUI is a solution that "loads the page once", and all things must be done dynamically. |
Good find!
Hmm, thinking about it, maybe it's possible to control it. WebUI already provides an api to get the process ids, so ending the process on |
Thank you for the report. Fixing this issue led to the creation of a new API. Now, when using all-events If no all-events is used, then everything will work as normal. |
@hassandraga can you check if this new feature, catching all hrefs, works on Firefox? In my case it doesnt, on Chrome & Edge it works. |
I did not test it in Firefox. I will double-check. |
webui_exit
won't work after changing a page through a link, e.g. in the serve a folder example. The window will stay open.It works when programatically changing the page via the backend.
The text was updated successfully, but these errors were encountered: