Skip to content

Commit

Permalink
fix raccourcis par défaut non pris en compte
Browse files Browse the repository at this point in the history
  • Loading branch information
Refhi committed Jun 19, 2024
1 parent afdb92b commit a914804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function tooltipshower() {
cancelable: true
}));
}
chrome.storage.local.get("shortcuts", function(result) {
chrome.storage.local.get(["defaultShortcuts", "shortcuts"], function(result) {
// from keyCommands, extract for each key the action
const entries = Object.entries(keyCommands);
let submenuDict = {};
Expand All @@ -200,7 +200,7 @@ function tooltipshower() {
var match = action.toString().match(/submenuW\('(.*)'\)/);
if (match) {
var submenu = match[1];
submenuDict[submenu] = result["shortcuts"][key]; //On récupère le raccourcis dans les réglages
submenuDict[submenu] = shortcutDefaut(result.shortcuts, result.defaultShortcuts, key);
}
}
}
Expand Down

0 comments on commit a914804

Please sign in to comment.