From eaba80a73b5e1251b85fcf4128e8a61e6dae052e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 25 Nov 2023 10:57:03 -0800 Subject: [PATCH] other: do not block sw Signed-off-by: Varun Patil --- lib/Controller/OtherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/OtherController.php b/lib/Controller/OtherController.php index b1a04bc9..a93bf224 100644 --- a/lib/Controller/OtherController.php +++ b/lib/Controller/OtherController.php @@ -167,7 +167,7 @@ class OtherController extends GenericApiController switch ($name) { case 'service-worker.js': // Disable service worker if server is in debug mode - if (\OC::$server->get(\OCP\IConfig::class)->getSystemValue('debug', false)) { + if (!\OC::$server->get(\OCP\IConfig::class)->getSystemValue('memories.sw.enabled', true)) { throw Exceptions::NotFound('Service worker is disabled in debug mode'); }