summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoge <[email protected]>2021-05-12 14:06:46 +0800
committerDoge <[email protected]>2021-05-12 14:06:46 +0800
commit6527b2a1d77976187102a4de22d4caed44543d94 (patch)
tree30487beeb132ab3dbaefe5e7eb39ab02129f99db
parente02dfec59c7b2afee54e98deb06d940f4a49026a (diff)
downloadchromate-6527b2a1d77976187102a4de22d4caed44543d94.tar.gz
chromate-6527b2a1d77976187102a4de22d4caed44543d94.tar.bz2
chromate-6527b2a1d77976187102a4de22d4caed44543d94.zip
Fix eslint error
-rw-r--r--layout/post.ejs2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/post.ejs b/layout/post.ejs
index 443274b..ffa49e6 100644
--- a/layout/post.ejs
+++ b/layout/post.ejs
@@ -66,7 +66,7 @@
const second = Math.floor(timestamp % 60);
const viewstr = String(hour).padStart(2, '0') + ':' + String(minute).padStart(2, '0') + ':' + String(second).padStart(2, '0');
%>
- <li class="is-family-monospace"><a href="#t=<%= viewstr %>" onclick="player.seek(<%= timestamp %>)"><%= viewstr %></a> <%= title %></li>
+ <li class="is-family-monospace"><a href="#t=<%= viewstr %>" onclick="eval('player.seek(<%= timestamp %>)')"><%= viewstr %></a> <%= title %></li>
<% }); %>
</ul>
<% } %>