chore: Update Zen browser components submodule commit reference

This commit is contained in:
Mauro Balades
2024-08-06 12:35:21 +02:00
parent 0499ba0004
commit 214e290af3
3 changed files with 7 additions and 7 deletions

View File

@@ -66,6 +66,7 @@ Please adhere to this project's `code of conduct`.
## Special Thanks
- [IAmJafeth](https://github.com/IAmJafeth) (For sponsoring the domain)
- [Erlend](https://havn.blog) (For making the logo)
- [ptr1337](https://github.com/ptr1337) (AUR Packages and optimization flags)

View File

@@ -22,14 +22,13 @@ var gZenViewSplitter = {
initializeUpdateContextMenuItems() {
const contentAreaContextMenu = document.getElementById("tabContextMenu");
const tabCountInfo = JSON.stringify({
tabCount:
(window.gContextMenu?.contextTab.multiselected &&
window.gBrowser.multiSelectedTabsCount) ||
1,
});
contentAreaContextMenu.addEventListener("popupshowing", () => {
const tabCountInfo = JSON.stringify({
tabCount: window.gBrowser.selectedTabs.length,
});
console.log(tabCountInfo);
console.log(window.gContextMenu);
document
.getElementById("context_zenSplitTabs")
.setAttribute("data-l10n-args", tabCountInfo);