aboutsummaryrefslogtreecommitdiffhomepage
path: root/template
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-07-15 21:51:09 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-07-15 21:51:09 -0700
commit6aa02680d80709d714672dd842dc3dc2533339fe (patch)
treed6cf7b40e5662983fd3132630417aa91a1a35c15 /template
parentc926498d3d12f4e59c5fe0cd40a77c42d15c30b9 (diff)
Add service worker to cache feed icons
Diffstat (limited to 'template')
-rw-r--r--template/common.go6
-rw-r--r--template/html/common/layout.html4
2 files changed, 7 insertions, 3 deletions
diff --git a/template/common.go b/template/common.go
index 8fc2043..e4d051f 100644
--- a/template/common.go
+++ b/template/common.go
@@ -103,7 +103,9 @@ var templateCommonMap = map[string]string{
{{ else }}
<link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" "default" }}">
{{ end }}
- <script type="text/javascript" src="{{ route "javascript" }}" defer></script>
+
+ <script type="text/javascript" src="{{ route "javascript" "name" "app" }}" defer></script>
+ <script type="text/javascript" src="{{ route "javascript" "name" "sw" }}" defer id="service-worker-script"></script>
</head>
<body data-entries-status-url="{{ route "updateEntriesStatus" }}">
{{ if .user }}
@@ -232,6 +234,6 @@ var templateCommonMap = map[string]string{
var templateCommonMapChecksums = map[string]string{
"entry_pagination": "756ef122f3ebc73754b5fc4304bf05e59da0ab4af030b2509ff4c9b4a74096ce",
"item_meta": "6cff8ae243f19dac936e523867d2975f70aa749b2a461ae63f6ebbca94cf7419",
- "layout": "27b21c2d8ce341edcc11bf557f73fcd08dad1dfc8d0788c94addbc87f94f2f19",
+ "layout": "7a4a1ec5fdfe96b20626aa7b9028fd1f166a753e46b497f6d2232f5cd050895d",
"pagination": "b592d58ea9d6abf2dc0b158621404cbfaeea5413b1c8b8b9818725963096b196",
}
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index 5e07794..90df2f9 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -29,7 +29,9 @@
{{ else }}
<link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" "default" }}">
{{ end }}
- <script type="text/javascript" src="{{ route "javascript" }}" defer></script>
+
+ <script type="text/javascript" src="{{ route "javascript" "name" "app" }}" defer></script>
+ <script type="text/javascript" src="{{ route "javascript" "name" "sw" }}" defer id="service-worker-script"></script>
</head>
<body data-entries-status-url="{{ route "updateEntriesStatus" }}">
{{ if .user }}