diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index e25c90360e..1fc6d5d9c8 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/src/vector/platform/WebPlatform.ts @@ -51,7 +51,8 @@ export default class WebPlatform extends VectorBasePlatform { // Jest causes `register()` to return undefined, so swallow that case. if (swPromise) { - swPromise.then((r) => r.update()) + swPromise + .then((r) => r.update()) .catch((e) => console.error("Error registering/updating service worker:", e)); } }