mirror of https://github.com/gorhill/uBlock.git
(webext) support for vAPI.adminStorage is optional
This commit is contained in:
parent
ba18b3aa02
commit
5a50708961
|
@ -807,6 +807,12 @@
|
|||
// values are left to the user's choice.
|
||||
|
||||
µBlock.restoreAdminSettings = function(callback) {
|
||||
// Support for vAPI.adminStorage is optional (webext).
|
||||
if ( vAPI.adminStorage instanceof Object === false ) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
var onRead = function(json) {
|
||||
var µb = µBlock;
|
||||
var data;
|
||||
|
|
Loading…
Reference in New Issue