Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openpgpjs/openpgpjs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/worker/application_worker.js')
-rw-r--r--test/worker/application_worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/worker/application_worker.js b/test/worker/application_worker.js
index f40dd9f5..e34188b2 100644
--- a/test/worker/application_worker.js
+++ b/test/worker/application_worker.js
@@ -12,7 +12,7 @@ module.exports = () => tryTests('Application Worker', tests, {
function tests() {
it('Should support loading OpenPGP.js from inside a Web Worker', async function() {
- if (/Edge/.test(navigator.userAgent)) {
+ if (navigator.userAgent && /Edge/.test(navigator.userAgent)) {
this.skip(); // Old Edge doesn't support crypto.getRandomValues inside a Worker.
}
try {