From fa53159ade83c0f041feee4ed11dc47b8476a08e Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 19 Jun 2025 21:46:02 +0200 Subject: Don't make assumptions about Object.values() ordering. --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.js') 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 tag with the given URL and optional text */ -- cgit v1.2.3