Fix: this -> prefs
This commit is contained in:
parent
d35f92250e
commit
829a134ed1
|
@ -314,7 +314,7 @@ window.addEventListener('storageReady', function _() {
|
||||||
// register hotkeys
|
// register hotkeys
|
||||||
if (FIREFOX && browser.commands && browser.commands.update) {
|
if (FIREFOX && browser.commands && browser.commands.update) {
|
||||||
const hotkeyPrefs = Object.keys(prefs.defaults).filter(k => k.startsWith('hotkey.'));
|
const hotkeyPrefs = Object.keys(prefs.defaults).filter(k => k.startsWith('hotkey.'));
|
||||||
this.subscribe(hotkeyPrefs, (name, value) => {
|
prefs.subscribe(hotkeyPrefs, (name, value) => {
|
||||||
try {
|
try {
|
||||||
name = name.split('.')[1];
|
name = name.split('.')[1];
|
||||||
if (value.trim()) {
|
if (value.trim()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user