change camera chooser value to use the key of the setup

This commit is contained in:
lukas fricke 2025-01-29 15:44:26 +01:00
parent 846f20c13c
commit 31cc529769

View file

@ -364,7 +364,7 @@
function make_camera_chooser(setup, key){
let cameraID = document.createElement("option");
let text = document.createTextNode(setup.name);
cameraID.value = microscope_setups.length;
cameraID.value = key;
microscope_setups[key] = setup