Skip to content

Commit

Permalink
Fixed position dropdown not respecting previously selected value
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzyna committed Apr 9, 2024
1 parent b71e4d6 commit 03a6094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 03a6094

Please sign in to comment.