Skip to content

Commit

Permalink
Update shortcuts.js safety
Browse files Browse the repository at this point in the history
  • Loading branch information
raszpl authored Jun 29, 2024
1 parent 60bf516 commit bbeadcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js&css/web-accessible/www.youtube.com/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ ImprovedTube.shortcuts = function () {
this.input.listening = {};
// extract shortcuts from User Settings and initialize 'listening'
for (const [name, keys] of Object.entries(this.storage).filter(v => v[0].startsWith('shortcut_'))) {
if (!keys) continue;
// camelCase(name)
const camelName = name.replace(/_(.)/g, (m, l) => l.toUpperCase());
let potentialShortcut = {};
Expand Down

0 comments on commit bbeadcd

Please sign in to comment.