1
0
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:
Raymond Hill 2024-06-28 13:39:38 -04:00
parent 896737d098
commit 57ed293760
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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; }