change subfunction name to openLast

This commit is contained in:
buzz-lightsnack-2007 2024-03-28 16:48:39 +08:00
parent 951757a5c9
commit 43e3f081ca

View file

@ -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();
}
/*