mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
Fix bug with undefined cb
This commit is contained in:
parent
4738bcf9af
commit
1191a5e043
|
@ -264,7 +264,7 @@
|
|||
|
||||
let currentSettings = ffxStore('proxySettings') || {};
|
||||
currentSettings.levelOfControl = 'controlled_by_this_extension'; // May be lie, but this field is required.
|
||||
cb(currentSettings);
|
||||
cb && cb(currentSettings);
|
||||
|
||||
},
|
||||
onChange: {
|
||||
|
@ -280,7 +280,7 @@
|
|||
|
||||
browser.runtime.sendMessage(details, {toProxyScript: true});
|
||||
ffxStore('proxySettings', details);
|
||||
cb();
|
||||
cb && cb();
|
||||
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user