mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-12 18:04:16 +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) {
|
export async function adminRead(key) {
|
||||||
if ( browser.storage instanceof Object === false ) { return; }
|
if ( browser.storage instanceof Object === false ) { return; }
|
||||||
if ( browser.storage.local instanceof Object === false ) { return; }
|
if ( browser.storage.managed instanceof Object === false ) { return; }
|
||||||
try {
|
try {
|
||||||
const bin = await browser.storage.managed.get(key);
|
const bin = await browser.storage.managed.get(key);
|
||||||
if ( bin instanceof Object === false ) { return; }
|
if ( bin instanceof Object === false ) { return; }
|
||||||
|
|
Loading…
Reference in a new issue