mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
parent
2e0a74f34d
commit
168656c864
6 changed files with 30 additions and 30 deletions
4
main.js
4
main.js
|
|
@ -270,7 +270,7 @@ async function checkLoadParameters() {
|
|||
const url = new URL(window.location.href);
|
||||
const params = url.searchParams;
|
||||
|
||||
// of there is a valid maplink, try to load .gz/.map file from URL
|
||||
// of there is a valid maplink, try to load .map/.gz file from URL
|
||||
if (params.get("maplink")) {
|
||||
WARN && console.warn("Load map from URL");
|
||||
const maplink = params.get("maplink");
|
||||
|
|
@ -580,7 +580,7 @@ void (function addDragToUpload() {
|
|||
|
||||
if (!file.name.endsWith(".map") && !file.name.endsWith(".gz")) {
|
||||
alertMessage.innerHTML =
|
||||
"Please upload a map file (<i>.gz</i> or <i>.map</i> formats) you have previously downloaded";
|
||||
"Please upload a map file (<i>.map</i> or <i>.gz</i> formats) you have previously downloaded";
|
||||
$("#alert").dialog({
|
||||
resizable: false,
|
||||
title: "Invalid file format",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue