You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to create a worker for a custom mode (following this guide) and I can't get my browser to make a request for my worker file. Upon examination of brace source, I have found a line in $workerBlob method that looks suspicious to me: https://github.com/thlorenz/brace/blame/master/index.js#L17977:
var script = mod.src;"importScripts('" + net.qualifyURL(workerUrl) + "');";
What is this string "importScripts('" + net.qualifyURL(workerUrl) + "');" supposed to be doing? This line was changed in v0.11.0. Before the change, it was this:
var script = "importScripts('" + net.qualifyURL(workerUrl) + "');";
This one makes more sense to me.
I am not entirely sure if this is a bug, or my problems are stemming from something else entirely, but I would appreciate someone more knowledgeable taking a look at this and helping me understand. And any pointers or docs on how to create a custom worker would be appreciated as well. Thanks!
The text was updated successfully, but these errors were encountered:
n1313
changed the title
Difficulties while creating a worker
Difficulties while creating a worker for custom mode
Dec 4, 2018
n1313
changed the title
Difficulties while creating a worker for custom mode
Difficulties while creating a worker for a custom mode
Dec 4, 2018
Hi, I am trying to create a worker for a custom mode (following this guide) and I can't get my browser to make a request for my worker file. Upon examination of brace source, I have found a line in
$workerBlob
method that looks suspicious to me: https://github.com/thlorenz/brace/blame/master/index.js#L17977:What is this string
"importScripts('" + net.qualifyURL(workerUrl) + "');"
supposed to be doing? This line was changed in v0.11.0. Before the change, it was this:This one makes more sense to me.
I am not entirely sure if this is a bug, or my problems are stemming from something else entirely, but I would appreciate someone more knowledgeable taking a look at this and helping me understand. And any pointers or docs on how to create a custom worker would be appreciated as well. Thanks!
The text was updated successfully, but these errors were encountered: