Fix pdf extension check (#7124)

* fix: lowercase item path for pdf extension

Signed-off-by: sinjed <oooguuh@gmail.com>

* lint: single quote

Signed-off-by: sinjed <oooguuh@gmail.com>

---------

Signed-off-by: sinjed <oooguuh@gmail.com>
This commit is contained in:
S1NJED
2025-10-03 22:33:55 +02:00
committed by GitHub
parent f20aaa3195
commit 8a0176eba2

View File

@@ -326,7 +326,7 @@ export class PdfPlayer {
}
canPlayItem(item) {
return item.Path?.endsWith('pdf');
return item.Path ? item.Path.toLowerCase().endsWith('pdf') : false;
}
}