1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/web_src/js
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
..
components Heatmap days clickable (#13935) 2021-02-20 17:08:58 -05:00
features Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00
markup Use a generic markup class to display externally rendered files and diffs (#15735) 2021-05-07 10:43:41 +02:00
standalone docs: swagger show models by default (#14880) 2021-03-07 22:19:14 +01:00
easymde.js Switch from SimpleMDE to EasyMDE (#13333) 2020-11-10 14:16:30 -05:00
index.js Code comments improvements (#15722) 2021-05-08 18:28:25 +03:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
publicpath.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js Dropdowns, Labels fixes and more CSS tweaks (#13733) 2020-11-29 01:22:04 -05:00
utils.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00
utils.test.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00