We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d3e85 commit 4c9f132Copy full SHA for 4c9f132
src/BlazorWorker/BlazorWorker.js
@@ -209,7 +209,13 @@ window.BlazorWorker = function () {
209
const empty = {};
210
211
// Import module script from a path relative to approot
212
- self.importLocalScripts = async (urls) => {
+ self.importLocalScripts = async (...urls) => {
213
+ if (urls === undefined || urls === null) {
214
+ return;
215
+ }
216
+ if (!urls.map) {
217
+ urls = [urls]
218
219
const mappedUrls = urls.map(url => initConf.appRoot + (url.startsWith('/') ? '' : '/') + url);
220
for (const url of mappedUrls) {
221
await import(url);
0 commit comments