GoogleChrome / samples

A repo containing samples tied to new functionality in each release of Google Chrome.
https://www.chromestatus.com/samples
Apache License 2.0
5.77k stars 2.39k forks source link

quick fix - servie-worker.js #814

Closed yakshjethva closed 6 months ago

yakshjethva commented 10 months ago

where the then() method expects to receive a callback function, but you are calling a function from there.

.then(() => self.skipWaiting())

yakshjethva commented 10 months ago

where the then() method expects to receive a callback function, but you are calling a function from there.

Issue : Facing issue in safari & firefox browser.

Proposed Solution: .then(() => self.skipWaiting())