Closed julianctni closed 4 years ago
Oh, and wouldn't it be better to put this also into the init()
function? 🤔
Oh, and wouldn't it be better to put this also into the init() function? 🤔
Nevermind, it should be okay as it is. I'll format and merge it.
Show a dialog box that warns the user that there are unsaved changes. The dialog only appears, when changes made to the code or new files were not saved yet. Used the "beforeunload" event of the window element. Implementation contains some legacy methods to make it work in all common browsers.
Fixes: #391