diff --git a/src/ZenKeyboardShortcuts.mjs b/src/ZenKeyboardShortcuts.mjs index 61ab5e8..f5ba323 100644 --- a/src/ZenKeyboardShortcuts.mjs +++ b/src/ZenKeyboardShortcuts.mjs @@ -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; } @@ -1004,4 +1006,4 @@ document.addEventListener("MozBeforeInitialXULLayout", () => { if (Services.prefs.getBoolPref('zen.keyboard.shortcuts.enabled', false)) { gZenKeyboardShortcutsManager.beforeInit(); } -}, { once: true }); \ No newline at end of file +}, { once: true });