From 43e3f081ca1316a38130ff7d1a3268c4e3db3d4c Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Thu, 28 Mar 2024 16:48:39 +0800 Subject: [PATCH] change subfunction name to openLast --- gui/scripts/pages/settings.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/scripts/pages/settings.js b/gui/scripts/pages/settings.js index c2b4f50..7025be3 100644 --- a/gui/scripts/pages/settings.js +++ b/gui/scripts/pages/settings.js @@ -24,7 +24,7 @@ function say() { Arrange the interface. */ function arrange() { - async function click() { + async function openLast() { let last_opened = ( await Promise.all([secretariat.read([`view`, window.location.href], 1)]) )[0]; @@ -35,9 +35,7 @@ function arrange() { document.querySelector(`[role="tab"][for="${last_opened}"]`).click(); } - // click! - // document.querySelector(`menu button[role="tab"][aria-controls="${last_opened}"]`).click(); - click(); + openLast(); } /*