Skip to content

Commit 6be0129

Browse files
committed
web: Update dependencies, fix error messages not working
1 parent de189e7 commit 6be0129

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

web/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
"scripts": {
77
"build": "node_modules/.bin/rollup -c --bundleConfigAsCjs"
88
},
9-
"browserslist": "firefox >= 55, and_ff >= 55, chrome >= 60, and_chr >= 60, ios >= 12, safari >= 12, samsung >= 5, and_uc >= 11.8, opera >= 47, op_mob >= 47, baidu >= 7",
9+
"browserslist": ["defaults"],
1010
"author": "asie",
11-
"license": "GPL-3.0-or-later",
11+
"license": "MIT",
1212
"devDependencies": {
1313
"@babel/core": "^7.26.10",
1414
"@babel/preset-env": "^7.26.9",
1515
"@rollup/plugin-babel": "^6.0.4",
16-
"@rollup/plugin-node-resolve": "^15.3.1",
16+
"@rollup/plugin-node-resolve": "^16.0.1",
1717
"@rollup/plugin-terser": "^0.4.4",
18-
"rollup": "^3.29.5",
18+
"rollup": "^4.46.2",
1919
"rollup-plugin-banner2": "^1.3.1"
2020
},
2121
"dependencies": {
22-
"core-js": "^3.41.0"
22+
"core-js": "^3.44.0"
2323
}
2424
}

web/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ window.ZetaInitialize = function(options, callback) {
216216
return emu;
217217
});
218218
}).then(_ => true).catch(reason => {
219-
callback(undefined, reason);
219+
if (callback != null) callback(undefined, reason);
220220
drawErrorMessage(canvas, ctx, reason);
221221
});
222222
}

0 commit comments

Comments
 (0)