Replies: 2 comments 1 reply
-
To clarify, I'm loading the script as suggested on Erwic page: https://github.com/Jelmerro/Vieb/blob/master/Erwic.md#multiple-pages Here's the script:
|
Beta Was this translation helpful? Give feedback.
-
As for your issue, I don't think there's a solution in Vieb for this at the moment, the best we have is the |
Beta Was this translation helpful? Give feedback.
-
I love using Vieb to handle my communication apps, because it has splits and Erwic. Erwic page suggests you can use Vieb to replace other Electron desktop apps: https://github.com/Jelmerro/Vieb/blob/master/Erwic.md#electron-apps
So, I use Erwic to load all apps that I need, each one in its own split.
What happened to me a few times is:
This action moves me away from the app I had a call in, i.e. since I open a new page - I'm dropped out of that call.
Is there a way to prevent this from happening? So I can navigate only within that same app, but never leave it? Usually when this happens, I just go back in history, no harm. But it is an issue if there's an ongoing call. So I would like to block that possibility alltogether and have a complete dedicated Electron app experience.
I did my homework and tried to implement this somehow. I wanted to block the transition to the new page and display a warning (a reminder to open an external link in a new tab / external app).
My initial idea was to just write a greasemonkey script and
preventDefault
onbeforeunload
. So, my script is executing, but preventUnload does not have any effect. Then, after some frustrating time of debugging this, I found the following: https://github.com/Jelmerro/Vieb/blob/master/CHANGELOG.md?plain=1#L591I'm assuming this is the reason my script is not working?
Thanks in advance for any suggestions/tips.
Beta Was this translation helpful? Give feedback.
All reactions