1
0
Fork 0
forked from forgejo/forgejo

Remove useless appVer from JS window.config (#21445)

The only usage of `appVer` was in serviceworker.js, while indeed it
needs the asset version.
This commit is contained in:
wxiaoguang 2022-10-14 01:16:27 +08:00 committed by GitHub
parent 0e58201d1a
commit f40833d1f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,6 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
<script>
window.addEventListener('error', function(e) {window._globalHandlerErrors=window._globalHandlerErrors||[]; window._globalHandlerErrors.push(e);});
window.config = {
appVer: '{{AppVer}}',
appUrl: '{{AppUrl}}',
appSubUrl: '{{AppSubUrl}}',
assetVersionEncoded: encodeURIComponent('{{AssetVersion}}'), // will be used in URL construction directly