diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-06-19 21:46:02 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-06-19 21:46:02 +0200 |
commit | fa53159ade83c0f041feee4ed11dc47b8476a08e (patch) | |
tree | 0a1bfea65175f8c4713f1bae468f8539593dac94 /main.js | |
parent | 263f7ce2325a258df149cf29c32f2bbbb97d7924 (diff) |
Don't make assumptions about Object.values() ordering.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |