mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-01 15:38:38 +00:00
Refactor subproject commit in zen-components and update keyboard shortcuts preferences
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
|
||||
{
|
||||
const lazy = {};
|
||||
XPCOMUtils.defineLazyPreferenceGetter(lazy, 'sidebarHeightThrottle', 'zen.view.sidebar-height-throttle', 500);
|
||||
XPCOMUtils.defineLazyPreferenceGetter(
|
||||
lazy,
|
||||
"sidebarHeightThrottle",
|
||||
"zen.view.sidebar-height-throttle",
|
||||
500
|
||||
);
|
||||
var ZenStartup = {
|
||||
init() {
|
||||
this.logHeader();
|
||||
@@ -39,7 +45,7 @@
|
||||
gZenUIManager.init();
|
||||
gZenVerticalTabsManager.init();
|
||||
gZenCompactModeManager.init();
|
||||
gZenKeyboardShortcutsManager.init();
|
||||
gZenKeyboardShortcuts.init();
|
||||
|
||||
function throttle(f, delay) {
|
||||
let timer = 0;
|
||||
@@ -49,9 +55,7 @@
|
||||
};
|
||||
}
|
||||
|
||||
new ResizeObserver(throttle(this._updateTabsToolbar.bind(this), lazy.sidebarHeightThrottle)).observe(
|
||||
document.getElementById('tabbrowser-tabs')
|
||||
);
|
||||
new ResizeObserver(throttle(this._updateTabsToolbar.bind(this), lazy.sidebarHeightThrottle)).observe(document.getElementById('tabbrowser-tabs'));
|
||||
} catch (e) {
|
||||
console.error('ZenThemeModifier: Error initializing browser layout', e);
|
||||
}
|
||||
@@ -146,4 +150,4 @@
|
||||
};
|
||||
|
||||
ZenStartup.init();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user