mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
[mv3] Fix bad test re. managed storage
This commit is contained in:
parent
896737d098
commit
57ed293760
@ -107,7 +107,7 @@ export async function sessionWrite(key, value) {
|
||||
|
||||
export async function adminRead(key) {
|
||||
if ( browser.storage instanceof Object === false ) { return; }
|
||||
if ( browser.storage.local instanceof Object === false ) { return; }
|
||||
if ( browser.storage.managed instanceof Object === false ) { return; }
|
||||
try {
|
||||
const bin = await browser.storage.managed.get(key);
|
||||
if ( bin instanceof Object === false ) { return; }
|
||||
|
Loading…
Reference in New Issue
Block a user