-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adding 2 new actions: prevent tab close and simple shortcut #11
Conversation
thank you! leaving this open to invite comments, api discussion, docs notes, from anyone |
Actually I found a bug in the binary logic there. If you introduce a shortcut like I'll try to find a simple solution to this. |
…ficator conditions meet
@sw-yx Fixed. Saved the new demo in REPL. |
thank you! |
window.removeEventListener('beforeunload', handler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about https://developers.google.com/web/updates/2018/07/page-lifecycle-api#the-unload-event looks like you implemented it in the correct way
@sw-yx Wassup? :) I wanted to submit another PR but I don't know if it makes sense if the repo is frozen. |
haha hey :) not much, just wanted to invite others to comment. but i can merge :) |
released as v0.1.0 https://github.com/sw-yx/svelte-actions/releases/tag/v0.1.0 |
PR for issue #10