Support for remotely-hosted workerHelper script?
See original GitHub issueI’ve just published this and as shown in the readme I’ve uploaded it here:
https://deno.land/x/wasm_image_decoder@v0.0.1
But when trying to use it I get an error because the worker script is hosted on the deno.land
origin rather than on the origin on which the module is being used.
I think this might be a relatively easy fix. It would just require changing this:
const worker = new Worker(import.meta.url, {
type: 'module'
});
to this:
let scriptBlob = await fetch(import.meta.url).then(r => r.blob());
const worker = new Worker(URL.createObjectURL(scriptBlob), {
type: 'module'
});
I edited workerHelpers.no-bundler.js
with the above change and it works fine.
Can you foresee any problems with this change? And if not, would you accept a PR for this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Remotely Hosted PHP Scripts | PHPJabbers
A perfect solution for anyone who wants to use our scripts, but doesn't want or cannot install them on their own hosting account....
Read more >Execute scripts remotely - TeamViewer Support
Open the scripts menu. Windows: Go to Actions > Scripts in the remote control toolbar to open the menu. · Select a script...
Read more >Remotely, a free open source Remote Support Alternative to ...
Remotely is a truely free (as in Libre) , truely open source GPS 3.0, Self-hosable Remote Desktop Support software. That's right!
Read more >Connect and work with JetBrains Gateway | IntelliJ IDEA ...
The main script to run a remote IDE is remote-dev-server.sh , located in the bin subdirectory of your unpacked IDE. note. In case...
Read more >Remote Development FAQ - Visual Studio Code
Visual Studio Code Remote Development Frequently Asked Questions (FAQ) for SSH, Containers, and WSL.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve reopened this issue and updated your PR’s description instead.
I’ll just mention since you said you’re not familiar with Github’s review process - FWIW it’s best not to close issues on Github before they’re implemented (or deemed unnecessary). If you’re resolving issue in a PR, then you just need to say
Closes #1234
in a commit message and Github will auto-close it when PR is merged.