tools / commit
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}')`;