mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
perf: load jszip dynamically
This commit is contained in:
parent
8735ca8a3e
commit
ac063d4f07
3 changed files with 4 additions and 4 deletions
|
|
@ -75,7 +75,8 @@ async function saveTiles() {
|
|||
return new Promise(async (resolve, reject) => {
|
||||
// download schema
|
||||
const urlSchema = await getMapURL("tiles", {debug: true, fullMap: true});
|
||||
const zip = new JSZip();
|
||||
await import("../../libs/jszip.min.js");
|
||||
const zip = new window.JSZip();
|
||||
|
||||
const canvas = document.createElement("canvas");
|
||||
const ctx = canvas.getContext("2d");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue