Skip to content

Commit 8e35f1d

Browse files
committed
Update BrowserImageSlideshow.html
1 parent 76492b1 commit 8e35f1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BrowserImageSlideshow.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
const imageExtensions = ["apng", "avif", "gif", "jpg", "jpeg", "jfif", "pjpeg", "pjp", "png", "svg", "webp", "bmp", "ico", "cur"];
5454

5555
// setup image src strings
56-
let images = imageNamesStr.split("\n");
56+
const images = imageNamesStr.split("\n");
5757
images.shift();
5858
images.pop();
5959
for (let i = images.length-1; i >= 0; i--) {
@@ -188,7 +188,7 @@
188188
caption.innerText = filename;
189189
}
190190

191-
// called once when the browser source loads or restarts
191+
// called once when the browser source loads or is restarted via hotkey
192192
function start() {
193193
topImage.style.opacity = "0.0";
194194
botImage.style.opacity = "0.0";
@@ -252,7 +252,7 @@
252252
break;
253253
case "7": restart(); break;
254254
default:
255-
console.log("Unhandled hotkey: " + key);
255+
//console.log("Unhandled hotkey: " + key);
256256
break;
257257
}
258258
});

0 commit comments

Comments
 (0)