fuzzyworld

tools / commit

set a different default icon

321f918563c5196c080d77b6f8e3612014d51183 · Pavel Safronov · 2025-07-22 10:10:25 -0700 · parents 78f9b326c111

set a different default icon
 separator-page/index.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/separator-page/index.html b/separator-page/index.html
index 206d19a..52e1366 100644
--- a/separator-page/index.html
+++ b/separator-page/index.html
@@ -348,6 +348,7 @@ technically *some* scripts can get your local "default separator page" state
                 localStorage.setItem(previousIconsKey, JSON.stringify(defaultIcons));
                 console.log('Initialized with default icons');
             }
+            handleIconChange(defaultIcons[0]); // Set the first default icon as the current icon
         }
 
         function resetToDefaultIcons() {
@@ -405,7 +406,7 @@ technically *some* scripts can get your local "default separator page" state
             const previousIcons = JSON.parse(localStorage.getItem(previousIconsKey) || "[]");
             previousIconsContainer.innerHTML = "";
 
-            previousIcons.forEach((iconUrl, index) => {
+            previousIcons.forEach(iconUrl => {
                 const iconElement = document.createElement("div");
                 iconElement.className = "previous-icon";
                 iconElement.style.backgroundImage = `url('${iconUrl}')`;