mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 20:09:57 +02:00
Recreate shortcuts file if not exist/deleted - ZenKeyboardShortcuts.mjs
Recreate shortcuts file if not exist/deleted - ZenKeyboardShortcuts.mjs
This commit is contained in:
parent
d853fa8de4
commit
e6d144879c
1 changed files with 3 additions and 1 deletions
|
@ -535,6 +535,8 @@ class ZenKeyboardShortcutsLoader {
|
||||||
try {
|
try {
|
||||||
return await IOUtils.readJSON(this.shortcutsFile);
|
return await IOUtils.readJSON(this.shortcutsFile);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// Recreate shortcuts file
|
||||||
|
Services.prefs.clearUserPref('zen.keyboard.shortcuts.version');
|
||||||
console.error('Error loading shortcuts file', e);
|
console.error('Error loading shortcuts file', e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue