Closed ccordoui closed 1 year ago
In the function shouldUseActiveX, window.ActiveXObject is referenced before testing if window exist:
shouldUseActiveX
window.ActiveXObject
window
if (window.ActiveXObject) useActiveX = true;
Which trigger an error if window is undefined (in a service worker for example), it can be fixed using something like:
if (typeof window !== 'undefined' && window.ActiveXObject) useActiveX = true;
Duplicate of #397
In the function
shouldUseActiveX
,window.ActiveXObject
is referenced before testing ifwindow
exist:Which trigger an error if
window
is undefined (in a service worker for example), it can be fixed using something like: