summaryrefslogtreecommitdiff
path: root/layout/post.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'layout/post.ejs')
-rw-r--r--layout/post.ejs4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/post.ejs b/layout/post.ejs
index 3428ddf..67f1ed0 100644
--- a/layout/post.ejs
+++ b/layout/post.ejs
@@ -54,7 +54,7 @@
<% } %>
<script>
window.addEventListener("load", () => {
- if (chapters !== []) Shikwasa.use(Chapter);
+ if (typeof Chapter !== 'undefined') Shikwasa.use(Chapter);
// Check for local audio media url
let url = "<%= page.podcast.media.url %>";
@@ -105,4 +105,4 @@
</div>
</div>
</div>
-</div> \ No newline at end of file
+</div>