From 156ffecf5f4b96111916e5acd5f9e70271645e53 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 1 Jul 2024 11:28:30 +0300 Subject: [PATCH] Another fix for adguard --- src/extensionPreferences/userScriptStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensionPreferences/userScriptStore.ts b/src/extensionPreferences/userScriptStore.ts index 65ef8af..17323e9 100644 --- a/src/extensionPreferences/userScriptStore.ts +++ b/src/extensionPreferences/userScriptStore.ts @@ -9,7 +9,7 @@ export default class UserScriptStore { } async get(key: string) { let val = await GM.getValue(key); - if (val === undefined) return val; + if (val === undefined || val[key] === undefined) return val; return val[key]; } name = "gmStore";