mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 00:39:59 +02:00
Merge branch 'main' of https://github.com/zen-browser/components
This commit is contained in:
commit
cfa0d1c8f4
1 changed files with 3 additions and 1 deletions
|
@ -535,6 +535,8 @@ class ZenKeyboardShortcutsLoader {
|
|||
try {
|
||||
return await IOUtils.readJSON(this.shortcutsFile);
|
||||
} catch (e) {
|
||||
// Recreate shortcuts file
|
||||
Services.prefs.clearUserPref('zen.keyboard.shortcuts.version');
|
||||
console.error('Error loading shortcuts file', e);
|
||||
return null;
|
||||
}
|
||||
|
@ -1009,4 +1011,4 @@ document.addEventListener("MozBeforeInitialXULLayout", () => {
|
|||
if (Services.prefs.getBoolPref('zen.keyboard.shortcuts.enabled', false)) {
|
||||
gZenKeyboardShortcutsManager.beforeInit();
|
||||
}
|
||||
}, { once: true });
|
||||
}, { once: true });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue