an example of code where manual sync can be used

Removed commented out code
This commit is contained in:
buzzcode2007 2024-04-04 14:07:23 +08:00
parent 333310fcc8
commit 3df2ccbd65

View file

@ -14,34 +14,8 @@ async function build() {
).default;
let window = new windowman();
}
/*
Arrange the interface.
*/
/*function arrange() {
async function openLast() {
let last_opened = (
await Promise.all([secretariat.read([`view`, window.location.href], 1)])
)[0];
if (!last_opened || typeof last_opened !== `number`) {
last_opened = 0;
}
if (document.querySelector(`[role="tab"][tab="${last_opened}"]`)) {
document.querySelector(`[role="tab"][tab="${last_opened}"]`).click();
}
}
openLast();
}
function main() {
windowman.fill();
events();
arrange();
}*/
window.sync();
};
/*
Define the mapping of each button.