aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-19 21:46:02 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-19 21:46:02 +0200
commitfa53159ade83c0f041feee4ed11dc47b8476a08e (patch)
tree0a1bfea65175f8c4713f1bae468f8539593dac94 /main.js
parent263f7ce2325a258df149cf29c32f2bbbb97d7924 (diff)
Don't make assumptions about Object.values() ordering.
Diffstat (limited to 'main.js')
-rw-r--r--main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.js b/main.js
index aeff199..2303e5f 100644
--- a/main.js
+++ b/main.js
@@ -3981,7 +3981,9 @@ const infoMetadataAccordions = [];
btn_group.setAttribute('role', 'group');
body.appendChild(btn_group);
- Object.values(buttons).forEach((btn) => btn_group.appendChild(btn));
+ btn_group.appendChild(buttons.cancel);
+ btn_group.appendChild(buttons.undo);
+ btn_group.appendChild(buttons.ok);
})();
document.getElementById('measure-button')
@@ -3996,7 +3998,6 @@ const infoMetadataAccordions = [];
});
})();
-
/* popup and feature overlays */
const disposePopover = (function() {
/* return an <a> tag with the given URL and optional text */