cinera_player_post.js: s/setTime/setTimeThenPlay

Thanks to @nairou on twitter for the report
This commit is contained in:
Matt Mascarenhas 2021-06-27 19:13:18 +01:00
parent dd33bb49b3
commit 97806c2c9c
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ typedef struct
version CINERA_APP_VERSION = {
.Major = 0,
.Minor = 9,
.Patch = 0
.Patch = 1
};
#include <stdarg.h> // NOTE(matt): varargs

View File

@ -385,7 +385,7 @@ for(var i = 0; i < topicDots.length; ++i)
var lastAnnotationStorageItem = "cineraTimecode_" + window.location.pathname;
var lastAnnotation;
if(location.hash) {
player.setTime(location.hash.startsWith('#') ? location.hash.substr(1) : location.hash);
player.setTimeThenPlay(location.hash.startsWith('#') ? location.hash.substr(1) : location.hash);
}
else if(lastAnnotation = localStorage.getItem(lastAnnotationStorageItem))
{