You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 years ago
..
components Heatmap days clickable (#13935) 3 years ago
features Unregister non-matching serviceworkers (#15834) 3 years ago
markup Use a generic markup class to display externally rendered files and diffs (#15735) 3 years ago
standalone docs: swagger show models by default (#14880) 3 years ago
easymde.js Switch from SimpleMDE to EasyMDE (#13333) 4 years ago
index.js Code comments improvements (#15722) 3 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 4 years ago
publicpath.js Unregister non-matching serviceworkers (#15834) 3 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 4 years ago
svg.js Dropdowns, Labels fixes and more CSS tweaks (#13733) 4 years ago
utils.js Unregister non-matching serviceworkers (#15834) 3 years ago
utils.test.js Unregister non-matching serviceworkers (#15834) 3 years ago