-
Couldn't load subscription status.
- Fork 133
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
If you write the following in a webpack bundled app:
import amplitude from from 'amplitude-js';
And this statement occurs within a web-worker context, you get Uncaught ReferenceError: window is not defined from this block:
} else if (window.globalStorage) {
// Firefox 2-3 use globalStorage
// See https://developer.mozilla.org/en/dom/storage#globalStorage
try {
localStorage = window.globalStorage[window.location.hostname];
} catch (e) {// Something bad happened...
}
}
Is there any plan to support amplitude within a web worker?
raphaelbs
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request