silverwind 8ab815ae93
Unregister non-matching serviceworkers (#15834)
* Unregister non-matching serviceworkers

With the addition of the /assets url, users who visited a previous
version of the site now may have two active service workers, one with
the old scope `/` and one with scope `/assets`. This check for
serviceworkers that do not match the current script path and unregisters
them.

Also included is a small refactor to publicpath.js which was simplified
because AssetUrlPrefix is always present now. Also it makes use of the
new joinPaths helper too.

Fixes: https://github.com/go-gitea/gitea/pull/15823
2021-05-12 20:36:53 +02:00
..
2020-06-15 16:46:01 -04:00
2017-05-04 13:54:56 +08:00
2021-04-19 18:25:08 -04:00
2020-04-05 07:20:50 +01:00
2019-12-15 16:57:34 -05:00
2021-04-05 08:41:22 +01:00
2020-04-05 07:20:50 +01:00
2021-04-19 18:25:08 -04:00
2021-05-01 22:51:03 -04:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-04-05 07:20:50 +01:00
2019-06-12 15:41:28 -04:00