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