mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
dropbox - load script dynamically
This commit is contained in:
parent
8e480be704
commit
aee78071c6
5 changed files with 100 additions and 88 deletions
4
main.js
4
main.js
|
|
@ -213,7 +213,9 @@ function checkLoadParameters() {
|
|||
const pattern = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
|
||||
const valid = pattern.test(maplink);
|
||||
if (valid) {
|
||||
loadMapFromURL(maplink, 1);
|
||||
setTimeout(() => {
|
||||
loadMapFromURL(maplink, 1);
|
||||
}, 1000);
|
||||
return;
|
||||
} else showUploadErrorMessage("Map link is not a valid URL", maplink);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue