Delete timeout once done

This commit is contained in:
WardPearce
2024-10-18 14:55:27 +13:00
parent dab50c151f
commit 67a6089724
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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) {