Add geenrated resources to be pre-cached by service worker
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
{{ $searchConfig := i18n "bookSearchConfig" | default "{}" }}
|
||||
|
||||
(function () {
|
||||
const searchDataURL = '{{ $searchData.RelPermalink }}';
|
||||
const searchDataURL = '{{ partial "docs/links/resource-precache" $searchData }}';
|
||||
const indexConfig = Object.assign({{ $searchConfig }}, {
|
||||
includeScore: true,
|
||||
useExtendedSearch: true,
|
||||
|
||||
Reference in New Issue
Block a user