mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-08-19 15:16:43 +00:00
thumbnail readydata fix
This commit is contained in:
parent
d7dcdae7d9
commit
e1a25000ed
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ function initThumbnail() {
|
|||
}
|
||||
|
||||
function createThumbnail(vid) {
|
||||
if (settings.player5) {
|
||||
if (settings.player5 && vid.readyState >= 2) {
|
||||
let index = Math.floor(vid.currentTime / 5)
|
||||
if (!playerData.thumbnails[index] && h) {
|
||||
context.fillRect(0, 0, 150, h);
|
||||
|
|
|
|||
Loading…
Reference in a new issue