Decide whether `skipWaiting()` is used based on the version of `ServiceWorker`.
CoralPink opened this issue · comments
CoralPink commented
The current implementation is only:
use skipWaiting()
because the version needs to be updated immediately.
The behavior originally required by:
skipWaiting()
because it is older than the version that needs to be updated immediately.
Therefore, it is advisable to compare major
/minor
versions to make a decision.