From 441eec8e383b4db7e1cade95ad0497a3c0f4b5a2 Mon Sep 17 00:00:00 2001 From: tim h Date: Fri, 2 Dec 2022 18:20:07 -0600 Subject: [PATCH] slightly less but still ugly hack --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index 04172aa..f837b62 100644 --- a/js/index.js +++ b/js/index.js @@ -777,7 +777,7 @@ async function getStyles() { const option = document.createElement("option"); option.classList.add("style-select-option"); option.text = style.name; - option.value = style.name != "None" ? style.name : ""; + option.value = style.name; option.title = `prompt: ${style.prompt}\nnegative: ${style.negative_prompt}`; option.selected = !!stored.find((styleName) => style.name === styleName); styleSelect.add(option); @@ -805,7 +805,7 @@ function changeStyles() { ); const selectedString = selected.map((option) => option.value); - selectedString != "" + selectedString != "None" ? localStorage.setItem("promptStyle", JSON.stringify(selectedString)) : localStorage.setItem("promptStyle", "[]");