r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.75k stars 554 forks source link

The interface loaded by pywebview will trigger a CTRL+F5 hard refresh in the frontend after login failure, which will cause the injection of api_js to be cleared #1473

Closed motcs closed 1 month ago

motcs commented 1 month ago

Discussed in https://github.com/r0x0r/pywebview/discussions/1472

Originally posted by **motcs** September 20, 2024 The interface loaded by pywebview will trigger a CTRL+F5 hard refresh in the frontend after login failure, which will cause the injection of api_js to be cleared. Please ask whether you can avoid the problem that api_js is cleared after hard refresh, or inject api_js again after hard refresh, instead of invalidating, which causes pywebview.api to fail after logging in again
motcs commented 1 month ago

Missing error details prompt