Fixed build error when all feature flags are disabled

This commit is contained in:
squidfunk 2020-09-06 12:09:57 +02:00
parent 9ec0d4d89d
commit 180b4c934d
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@
<script> <script>
app = initialize({ app = initialize({
base: "{{ base_url }}", base: "{{ base_url }}",
features: {{ config.theme.features | tojson }}, features: {{ config.theme.features or [] | tojson }},
search: Object.assign({ search: Object.assign({
worker: "{{ 'assets/javascripts/worker/search.5eca75d3.min.js' | url }}" worker: "{{ 'assets/javascripts/worker/search.5eca75d3.min.js' | url }}"
}, typeof search !== "undefined" && search) }, typeof search !== "undefined" && search)

View File

@ -385,7 +385,7 @@
<script> <script>
app = initialize({ app = initialize({
base: "{{ base_url }}", base: "{{ base_url }}",
features: {{ config.theme.features | tojson }}, features: {{ config.theme.features or [] | tojson }},
search: Object.assign({ search: Object.assign({
worker: "{{ 'assets/javascripts/worker/search.js' | url }}" worker: "{{ 'assets/javascripts/worker/search.js' | url }}"
}, typeof search !== "undefined" && search) }, typeof search !== "undefined" && search)