KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
cross-domain-worker-url
★ 8
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
gh-serve-ionic
:
Front end badness for Grasshopper in the cloud
Learning-to-Build-Apps-Using-Watson-AI
:
Code repository for Learning to Build Apps Using Watson AI, published by Packt
votd-widget
:
Verse of the Day (VOTD) Web Widget
escpos-image-processor
:
Image processing for escpos-compatable printers
idsfind
:
IDSと画数で漢字を検索するモジュール
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
cross-domain-worker-url
?
Download (.md)
# cross-domain-worker-url #### Convert a cross-domain url to an available url. If your current domain is `http://www.a.com/`, but you want to try `const myWorker = new Worker('http://www.b.com/hello.js')`, it will throw cross-domain error. ##### We can solve the problem by using `cross-domain-worker-url` ```js import { getLocalWorkerUrl } from 'cross-domain-worker-url'; // If in async function, you can use in this way: // const localWorkerUrl = await getLocalWorkerUrl(originWorkerUrl); getLocalWorkerUrl(originWorkerUrl).then(localWorkerUrl => { const myWorker = new Worker(localWorkerUrl); }); ``` ## MIT Licenced