From f40833d1f0a9e3269d31090eae8fcb101fa1318c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 14 Oct 2022 01:16:27 +0800 Subject: [PATCH] Remove useless `appVer` from JS `window.config` (#21445) The only usage of `appVer` was in serviceworker.js, while indeed it needs the asset version. --- templates/base/head_script.tmpl | 1 - web_src/js/features/serviceworker.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/base/head_script.tmpl b/templates/base/head_script.tmpl index 8369b63b35..c4ac18a86e 100644 --- a/templates/base/head_script.tmpl +++ b/templates/base/head_script.tmpl @@ -6,7 +6,6 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.