From 03a6094166b66c00fef3bd1eb96ca0c6256c99a7 Mon Sep 17 00:00:00 2001 From: Liam Fruzyna Date: Tue, 9 Apr 2024 17:58:06 -0500 Subject: [PATCH] Fixed position dropdown not respecting previously selected value --- scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/index.js b/scripts/index.js index 8fa5f4d6..c0b7f8f6 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -210,7 +210,7 @@ function process_files() } position.add_option(`${color} ${pos}`) } - position.def = position.options[get_cookie(POSITION_COOKIE, 0)] + position.value = position.options[get_cookie(POSITION_COOKIE, 0)] document.getElementById('position').replaceChildren(...position.option_elements) }