Skip to content

Commit 2d66688

Browse files
committed
Disable hotkey function when slideshow empty
1 parent 336d013 commit 2d66688

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BrowserImageSlideshow.html

+2
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@
252252

253253
// handle hotkey events from OBS
254254
document.addEventListener("keydown", (event) => {
255+
if (images.length == 0) return;
256+
255257
let key = "";
256258
try { key = event.key; }
257259
catch (error) {

0 commit comments

Comments
 (0)