other: fix error message

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/953/head
Varun Patil 2023-11-25 11:54:31 -08:00
parent 7b4ad788aa
commit ab24efbeda
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class OtherController extends GenericApiController
case 'service-worker.js': case 'service-worker.js':
// Disable service worker if server is in debug mode // Disable service worker if server is in debug mode
if (!\OC::$server->get(\OCP\IConfig::class)->getSystemValue('memories.sw.enabled', true)) { if (!\OC::$server->get(\OCP\IConfig::class)->getSystemValue('memories.sw.enabled', true)) {
throw Exceptions::NotFound('Service worker is disabled in debug mode'); throw Exceptions::NotFound('Service worker is disabled in global configuration');
} }
$response = (new StreamResponse(__DIR__.'/../../js/memories-service-worker.js'))->setHeaders([ $response = (new StreamResponse(__DIR__.'/../../js/memories-service-worker.js'))->setHeaders([