From 121656bdeb22bcdc2da2f17852c6f355cc811345 Mon Sep 17 00:00:00 2001
From: Matthew Haughton <3flex@users.noreply.github.com>
Date: Sat, 2 Nov 2024 15:19:00 +1100
Subject: [PATCH 1/2] Remove disallowed `min` attribute from progress bar
---
src/index.html | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/index.html b/src/index.html
index bb89b82c..9c2f8031 100644
--- a/src/index.html
+++ b/src/index.html
@@ -34,11 +34,7 @@
>
From 769e83fbf03e3c518958932c412c925d86015133 Mon Sep 17 00:00:00 2001
From: Matthew Haughton <3flex@users.noreply.github.com>
Date: Sat, 2 Nov 2024 15:19:53 +1100
Subject: [PATCH 2/2] Fix typing of itemProgressBar
---
src/components/documentManager.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/documentManager.ts b/src/components/documentManager.ts
index f4212876..32f3ed87 100644
--- a/src/components/documentManager.ts
+++ b/src/components/documentManager.ts
@@ -567,9 +567,9 @@ export abstract class DocumentManager {
private static setPlayedPercentage(value = 0): void {
const element = this.querySelector(
'.itemProgressBar'
- ) as HTMLInputElement;
+ ) as HTMLProgressElement;
- element.value = value.toString();
+ element.value = value;
}
/**