Minor fix in commands extension

This commit is contained in:
Arijit Basu
2022-05-22 18:10:32 +05:30
committed by GitHub
parent 69ae7494bb
commit dfa9e51383

View File

@@ -5,7 +5,7 @@ const commandName = 'toggle-feature';
*/
async function updateUI() {
let commands = await browser.commands.getAll();
for (command of commands) {
for (let command of commands) {
if (command.name === commandName) {
document.querySelector('#shortcut').value = command.shortcut;
}