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
uses document.createElement, however document is obviously not available in a worker.
This causes the promise to be be rejected with: shimport.js Uncaught (in promise) ReferenceError: document is not defined.
Edit: looks like 0.0.14 was the last version where this worked.
The text was updated successfully, but these errors were encountered:
with typeof document !== 'undefined' fixes this, although obviously you don't get the ability to debug the eval'd scripts. But better that than not working at all, right?
The web-worker example (https://shimport-demos.surge.sh/web-worker/) no longer works.
The evaluate function:
shimport/src/load.ts
Line 33 in adcc230
uses
document.createElement
, howeverdocument
is obviously not available in a worker.This causes the promise to be be rejected with:
shimport.js Uncaught (in promise) ReferenceError: document is not defined
.Edit: looks like 0.0.14 was the last version where this worked.
The text was updated successfully, but these errors were encountered: