Skip to content

Commit

Permalink
#2421 shortcuts typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Jul 7, 2024
1 parent be504b7 commit e2c24bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ chrome.runtime.onInstalled.addListener(function (installed) {
}
chrome.storage.local.remove(Object.keys(result));
});
chrome.storage.local.get(['shortcut_volume_step', 'shortcut_playback_speed_step'], function (result) {
chrome.storage.local.get(['volume_step', 'playback_speed_step'], function (result) {
for (let [name, value] of Object.entries(result)) {
let newName = name.replace('shortcut_', 'shortcuts_');
let newName = 'shortcuts_' + name;
chrome.storage.local.set({[newName]: value});
}
chrome.storage.local.remove(Object.keys(result));
Expand Down

0 comments on commit e2c24bf

Please sign in to comment.