diff options
author | Doge <[email protected]> | 2021-05-12 14:06:46 +0800 |
---|---|---|
committer | Doge <[email protected]> | 2021-05-12 14:06:46 +0800 |
commit | 6527b2a1d77976187102a4de22d4caed44543d94 (patch) | |
tree | 30487beeb132ab3dbaefe5e7eb39ab02129f99db | |
parent | e02dfec59c7b2afee54e98deb06d940f4a49026a (diff) | |
download | chromate-6527b2a1d77976187102a4de22d4caed44543d94.tar.gz chromate-6527b2a1d77976187102a4de22d4caed44543d94.tar.bz2 chromate-6527b2a1d77976187102a4de22d4caed44543d94.zip |
Fix eslint error
-rw-r--r-- | layout/post.ejs | 2 |
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> <% } %> |