From a440359bc73f810a8d1831427730bd96bb70bbb1 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Thu, 12 Jul 2018 16:59:36 +0200 Subject: [PATCH] Commit patches provided to me by someone who Seemed Trustworthy At The Time (should fix false negatives in shared-worker detection) --- www/common/cryptpad-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 25f21e435..06f5e7ec8 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -884,7 +884,7 @@ define([ if (typeof(Worker) === "undefined") { Feedback.send('NO_WEBWORKER'); } - if (typeof(ServiceWorker) === "undefined") { + if (!('serviceWorker' in navigator)) { Feedback.send('NO_SERVICEWORKER'); } if (!common.hasCSSVariables()) {