mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
(webext) support for vAPI.adminStorage is optional
This commit is contained in:
parent
ba18b3aa02
commit
5a50708961
1 changed files with 6 additions and 0 deletions
|
@ -807,6 +807,12 @@
|
||||||
// values are left to the user's choice.
|
// values are left to the user's choice.
|
||||||
|
|
||||||
µBlock.restoreAdminSettings = function(callback) {
|
µBlock.restoreAdminSettings = function(callback) {
|
||||||
|
// Support for vAPI.adminStorage is optional (webext).
|
||||||
|
if ( vAPI.adminStorage instanceof Object === false ) {
|
||||||
|
callback();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var onRead = function(json) {
|
var onRead = function(json) {
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
var data;
|
var data;
|
||||||
|
|
Loading…
Reference in a new issue