Delete timeout once done
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"cancel": "Cancel",
|
||||
"create": "Create",
|
||||
"title": "Title",
|
||||
"searchPlaceholder": "Search (ctrl + k)",
|
||||
"searchPlaceholder": "Search",
|
||||
"delete": "Delete",
|
||||
"donate": "Donate",
|
||||
"deleteAllHistory": "Delete all history",
|
||||
|
||||
@@ -412,6 +412,8 @@
|
||||
}
|
||||
pauseTimeout = setTimeout(() => {
|
||||
player.pause();
|
||||
pauseTimerSeconds = 0;
|
||||
clearTimeout(pauseTimeout);
|
||||
}, pauseTimerSeconds * 1000);
|
||||
|
||||
ui('#pause-timer');
|
||||
@@ -573,7 +575,7 @@
|
||||
<i>width_wide</i>
|
||||
<div class="tooltip">{$_('player.theatreMode')}</div>
|
||||
</button>
|
||||
{#if data.video.lengthSeconds > 60}
|
||||
{#if data.video.lengthSeconds > 60 && !data.video.hlsUrl}
|
||||
<button
|
||||
on:click={() => {
|
||||
if (pauseTimeout) {
|
||||
|
||||
Reference in New Issue
Block a user