Does not work in web worker #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
error message:
Can you propose a solution?
Is
atob
defined on...self
or whatever it is that workers have?Does
globalThis
work?just with the function name works for me (both browser and web work)
reference:
https://caniuse.com/#search=atob
https://github.com/hughsk/atob-lite/blob/master/atob-browser.js
How about just put
var window = self;
in your WebWorker script?So many things depend on this and it is so abused by things like webpack and browserify, etc, etc that I don't want to rock the boat.
I could release a version 3 that uses something like:
That seems make sense. Thanks!