mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
[mv3] Fix bad test re. managed storage
This commit is contained in:
parent
896737d098
commit
57ed293760
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue