mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
Update script.js
onbeforeunload prompt
This commit is contained in:
parent
eb6ab63dd4
commit
6843242e1b
1 changed files with 4 additions and 0 deletions
|
|
@ -10538,3 +10538,7 @@ window.tip = tip;
|
|||
$("#optionsContainer *").on("mouseout", function() {
|
||||
tooltip.innerHTML = tooltip.getAttribute("data-main");
|
||||
});
|
||||
|
||||
window.onbeforeunload = function() {
|
||||
return "Are you sure you want to navigate away?";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue