fix jszip for production
This commit is contained in:
parent
e12f498afa
commit
9674b50be0
10 changed files with 64 additions and 21 deletions
|
|
@ -1872,7 +1872,7 @@ function init_lang() {
|
|||
}
|
||||
|
||||
export function run() {
|
||||
init_lang();
|
||||
client.start();
|
||||
init_lang();
|
||||
return api;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { space } from '../../moto/space.js';
|
|||
import { local } from '../../data/local.js';
|
||||
import { utils } from './utils.js';
|
||||
import { version } from '../../moto/license.js';
|
||||
import JSZip from '../../ext/jszip.esm.js';
|
||||
import { JSZip } from '../../ext/jszip-esm.js';
|
||||
|
||||
const { areEqual, ls2o, js2o } = utils;
|
||||
const { COLOR } = consts;
|
||||
|
|
@ -660,7 +660,7 @@ function settingsImportUrl(url, ask) {
|
|||
|
||||
function settingsImportZip(data, ask) {
|
||||
let alert = api.show.alert("Importing Workspace");
|
||||
JSZip.loadAsync(data).then(zip => {
|
||||
new JSZip().loadAsync(data).then(zip => {
|
||||
for (let [key,value] of Object.entries(zip.files)) {
|
||||
if (key === "workspace.json") {
|
||||
value.async("string").then(json => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue