From 636957aedf9f69fe9b59b904d6938adf9365284b Mon Sep 17 00:00:00 2001 From: ferricles Date: Mon, 8 Mar 2021 15:14:47 -0800 Subject: [PATCH] hotfix for fixedID custom sharing --- customizer.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/customizer.js b/customizer.js index 5f449fd..8b2c117 100644 --- a/customizer.js +++ b/customizer.js @@ -312,7 +312,12 @@ function decodeCustom(custom_url_tag) { if (version === "1") { //do the things - if (fixID) {statMap.set("fixId", "true");} + if (fixID) { + statMap.set("fixId", "true"); + toggleButton("fixID-choice"); + toggleYN("fixID-choice"); + toggleFixed(document.getElementById("fixID-choice")); + } while (tag !== "") { let id = ci_save_order[Base64.toInt(tag.slice(0,2))]; let len = Base64.toInt(tag.slice(2,4)); @@ -431,7 +436,7 @@ function toggleYN(elemId) { } /** - * @param fixed : a boolean for the state of the fixID button. True -> make all the variable IDs 2 inputs, False -> make them all 1 input + * @param fixed : a boolean for the state of the fixID button. */ function toggleFixed(fixed) { for (const id of rolledIDs) {