Skip to content

Commit 2d66688

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

BrowserImageSlideshow.html

Lines changed: 2 additions & 0 deletions
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)