mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 09:58:27 +00:00
10 lines
314 B
JavaScript
10 lines
314 B
JavaScript
// stub importScripts for the faulty detection of web worker env
|
|
if (typeof importScripts === 'undefined'
|
|
&& typeof WorkerGlobalScope !== 'undefined'
|
|
&& this instanceof WorkerGlobalScope
|
|
) {
|
|
this.importScripts = function () {
|
|
throw new Error('importScripts is a stub');
|
|
};
|
|
}
|