mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
new fonts
This commit is contained in:
parent
566a811d1f
commit
4251d0c0ea
4 changed files with 95 additions and 13 deletions
|
|
@ -44,12 +44,14 @@ const version = "1.81"; // generator version, update each time
|
|||
Ok: function () {
|
||||
$(this).dialog("close");
|
||||
if (storedVersion) clearStoredData();
|
||||
localStorage.setItem("version", version);
|
||||
}
|
||||
};
|
||||
|
||||
if (storedVersion) {
|
||||
buttons.Reload = () => {
|
||||
clearStoredData();
|
||||
localStorage.setItem("version", version);
|
||||
location.reload();
|
||||
};
|
||||
}
|
||||
|
|
@ -65,8 +67,6 @@ const version = "1.81"; // generator version, update each time
|
|||
|
||||
async function clearStoredData() {
|
||||
localStorage.clear();
|
||||
localStorage.setItem("version", version);
|
||||
|
||||
const cacheNames = await caches.keys();
|
||||
Promise.all(cacheNames.map(cacheName => caches.delete(cacheName)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue