From e2c24bf2cbc6797ba99d7f7d29f2fdfcb8fea1e8 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 8 Jul 2024 01:47:25 +0200 Subject: [PATCH] #2421 shortcuts typo --- background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index b147d6650..7b5aa5e61 100644 --- a/background.js +++ b/background.js @@ -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));