mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
refactor file save type to .gz and update the data in ui.
This commit is contained in:
parent
3f205cd499
commit
d25f626b8b
9 changed files with 40 additions and 39 deletions
|
|
@ -1,5 +1,5 @@
|
|||
"use strict";
|
||||
// Functions to load and parse .map files
|
||||
// Functions to load and parse .gz/.map files
|
||||
async function quickLoad() {
|
||||
const blob = await ldb.get("lastMap");
|
||||
if (blob) loadMapPrompt(blob);
|
||||
|
|
@ -170,7 +170,7 @@ function showUploadMessage(type, mapData, mapVersion) {
|
|||
let message, title, canBeLoaded;
|
||||
|
||||
if (type === "invalid") {
|
||||
message = `The file does not look like a valid <i>.map</i> file.<br>Please check the data format`;
|
||||
message = `The file does not look like a valid <i>.gz or .map</i> file.<br>Please check the data format`;
|
||||
title = "Invalid file";
|
||||
canBeLoaded = false;
|
||||
} else if (type === "ancient") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue