diff options
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/helper.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 6aa429ee14..8b5497a1c9 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -148,6 +148,9 @@ func NewFuncMap() []template.FuncMap { "MetaKeywords": func() string { return setting.UI.Meta.Keywords }, + "UseServiceWorker": func() bool { + return setting.UI.UseServiceWorker + }, "FilenameIsImage": func(filename string) bool { mimeType := mime.TypeByExtension(filepath.Ext(filename)) return strings.HasPrefix(mimeType, "image/") |