You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we could use local storage, or at least add a warning so people have to click to leave the page.
Something like this using JS:
window.addEventListener("beforeunload", function (e) {
var confirmationMessage = 'It looks like you have been editing something. '
+ 'If you leave before saving, your changes will be lost.';
(e || window.event).returnValue = confirmationMessage; //Gecko + IE
return confirmationMessage; //Gecko + Webkit, Safari, Chrome etc.
});
The text was updated successfully, but these errors were encountered:
Reloading the browser (CTRL+R) causes any custom code in the left panel of http://localhost:8080/playground to disappear.
It would be great if we could use local storage, or at least add a warning so people have to click to leave the page.
Something like this using JS:
window.addEventListener("beforeunload", function (e) {
var confirmationMessage = 'It looks like you have been editing something. '
+ 'If you leave before saving, your changes will be lost.';
});
The text was updated successfully, but these errors were encountered: