summaryrefslogtreecommitdiffstats
path: root/templates/pwa/serviceworker_js.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pwa/serviceworker_js.tmpl')
-rw-r--r--templates/pwa/serviceworker_js.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/pwa/serviceworker_js.tmpl b/templates/pwa/serviceworker_js.tmpl
index 5e5860ebb0..f109d06300 100644
--- a/templates/pwa/serviceworker_js.tmpl
+++ b/templates/pwa/serviceworker_js.tmpl
@@ -32,10 +32,14 @@ var urlsToCache = [
'{{AppSubUrl}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css',
'{{AppSubUrl}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.css',
'{{AppSubUrl}}/vendor/plugins/dropzone/dropzone.css',
-{{if ne DefaultTheme "gitea"}}
- '{{AppSubUrl}}/css/theme-{{DefaultTheme}}.css',
+{{if .IsSigned }}
+ {{ if ne .SignedUser.Theme "gitea" }}
+ '{{AppSubUrl}}/css/theme-{{.SignedUser.Theme}}.css'
+ {{end}}
+{{else if ne DefaultTheme "gitea"}}
+ '{{AppSubUrl}}/css/theme-{{DefaultTheme}}.css'
{{end}}
-
+
// img
'{{AppSubUrl}}/img/gitea-sm.png',
'{{AppSubUrl}}/img/gitea-lg.png',