From acb6d2298eb1494490b93bc1c842f69c4d530c03 Mon Sep 17 00:00:00 2001 From: Fernando Virdia Date: Wed, 22 Jan 2025 02:10:38 +0000 Subject: [PATCH] Fixing bug causing token no to be recovered by extension --- shared/src/background.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/src/background.js b/shared/src/background.js index 91624aa..627ede9 100644 --- a/shared/src/background.js +++ b/shared/src/background.js @@ -204,7 +204,9 @@ async function applyHeader(isManual = false) { } browser.webRequest.onBeforeRequest.addListener( - applyHeader, + async (details) => { + await applyHeader() + }, { urls: ['https://*.kagi.com/*'] }, [], );