feat: Add toggleBookmarksSidebar function to ZenUIManager

This commit is contained in:
Mauro Balades
2024-07-19 16:44:54 +02:00
parent ccb5df88b4
commit 40b652869d
2 changed files with 7 additions and 2 deletions

View File

@@ -15,5 +15,10 @@ var gZenUIManager = {
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, c =>
(+c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +c / 4).toString(16)
);
},
},
toogleBookmarksSidebar() {
const button = document.getElementById('zen-bookmark-button');
SidebarController.toggle('viewBookmarksSidebar', button);
},
};