summaryrefslogtreecommitdiff
path: root/layout/post.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'layout/post.ejs')
-rw-r--r--layout/post.ejs5
1 files changed, 3 insertions, 2 deletions
diff --git a/layout/post.ejs b/layout/post.ejs
index 67f1ed0..71f8f15 100644
--- a/layout/post.ejs
+++ b/layout/post.ejs
@@ -54,14 +54,15 @@
<% } %>
<script>
window.addEventListener("load", () => {
- if (typeof Chapter !== 'undefined') Shikwasa.use(Chapter);
+ const { Player } = window.Shikwasa;
+ if (typeof Chapter !== 'undefined') Player.use(Chapter);
// Check for local audio media url
let url = "<%= page.podcast.media.url %>";
if (!(url.startsWith("http://") || url.startsWith("https://")))
url = "<%= full_url_for(path, {relative: false}) %>".replace("index.html", '') + url;
- const player = new Shikwasa({
+ const player = new Player({
container: () => document.querySelector('.post-podcast-player'),
audio: {
title: "<%= page.title %>",