Skip to content

Commit

Permalink
Update background.js safety
Browse files Browse the repository at this point in the history
  • Loading branch information
raszpl authored Jun 29, 2024
1 parent 7dcb386 commit 60bf516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ chrome.runtime.onInstalled.addListener(function (installed) {
chrome.storage.local.get(['shortcut_auto', 'shortcut_144p', 'shortcut_240p', 'shortcut_360p', 'shortcut_480p', 'shortcut_720p', 'shortcut_1080p', 'shortcut_1440p', 'shortcut_2160p', 'shortcut_2880p', 'shortcut_4320p'], function (result) {
// validate and move to new name
for (let [name, keys] of Object.entries(result)) {
if (!keys) continue;
let newKeys = {},
newName = name.replace('shortcut_', 'shortcut_quality_');
for (const button of ['alt','ctrl','shift','wheel','toggle']) {
Expand Down

0 comments on commit 60bf516

Please sign in to comment.