0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 06:34:58 +01:00
gitea/web_src/js/features
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
..
clipboard.js
codeeditor.js
colorpicker.js
contextpopup.js
dropzone.js
emoji.js Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
eventsource.sharedworker.js Remove spurious set name from eventsource.sharedworker.js (#15643) 2021-04-28 10:40:04 -04:00
gitgraph.js
heatmap.js
imagediff.js
migration.js
notification.js
projects.js Project board improvements (#15429) 2021-04-20 00:13:03 -04:00
serviceworker.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00
stopwatch.js
tablesort.js
tribute.js