From 75dc851d1cee7728f273c432847cde7332279105 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:49:00 -0800 Subject: [PATCH] Fix incorrect syntax --- javascript/gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/gallery.js b/javascript/gallery.js index ed17499c0..dd1adfd57 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -41,7 +41,7 @@ async function awaitForGallery(expectedSize, signal) { } function updateGalleryStyles() { - if (opts.theme_type?.lower() === 'modern') { + if (opts.theme_type?.toLowerCase() === 'modern') { folderStylesheet.replaceSync(` .gallery-folder { cursor: pointer; padding: 8px 6px 8px 6px; background-color: var(--sd-button-normal-color); border-radius: var(--sd-border-radius); text-align: left; min-width: 12em;} .gallery-folder:hover { background-color: var(--button-primary-background-fill-hover); } @@ -108,7 +108,7 @@ class SimpleFunctionQueue { return; } this.#running = true; - if (callback.constructor.name.lower() === 'asyncfunction') { + if (callback.constructor.name.toLowerCase() === 'asyncfunction') { await callback(); } else { callback();