From 316d45e2facb02c9b2a2730a1d9d328626abce19 Mon Sep 17 00:00:00 2001 From: Dominik Reh Date: Tue, 24 Jan 2023 15:03:35 +0100 Subject: [PATCH] Use extra network multiplier from settings --- javascript/tagAutocomplete.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 76d7dcd..7a84566 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -198,7 +198,9 @@ async function syncOptions() { extra: { extraFile: opts["tac_extra.extraFile"], onlyAliasExtraFile: opts["tac_extra.onlyAliasExtraFile"] - } + }, + // Settings not from tac but still used by the script + extraNetworksDefaultMultiplier: opts["extra_networks_default_multiplier"] } if (CFG && CFG.colors) { @@ -317,9 +319,9 @@ function insertTextAtCursor(textArea, result, tagword) { } else if (tagType === ResultType.embedding) { sanitizedText = `${text.replace(/^.*?: /g, "")}`; } else if (tagType === ResultType.hypernetwork) { - sanitizedText = ``; + sanitizedText = ``; } else if(tagType === ResultType.lora) { - sanitizedText = ``; + sanitizedText = ``; } else { sanitizedText = CFG.replaceUnderscores ? text.replaceAll("_", " ") : text; }