Daksh777 / TakeABreak

Tackle procrastination by using self-destructing tabs and boost your productivity.
https://breaks.eu.org
GNU Affero General Public License v3.0
74 stars 114 forks source link

reload confirmation #133

Closed vikas-kmr1 closed 2 years ago

vikas-kmr1 commented 2 years ago

🛠️ Fixes Issue #123

👨‍💻 Changes proposed

✔️ Check List (Check all the applicable boxes)

📷 Screenshots

📄 Note to reviewers (optional)

vikas-kmr1 commented 2 years ago

hey @Daksh777
i tried very hard but not able to delay or stop reload untill user permission from swal or custom meaasages. read more here: https://stackoverflow.com/questions/38879742/is-it-possible-to-display-a-custom-message-in-the-beforeunload-popup

so i fix the issue with browser default pop up message.

vikas-kmr1 commented 2 years ago

Currently, on every reload, the user is being asked if they want to leave the website. However, the pop up should only be made when the user has selected a timer (you can use onclick event listener on the buttons for this)

@Daksh777 resolved