This commit is contained in:
mr. M 2024-10-18 18:19:59 +02:00
commit cfa0d1c8f4
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -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 });