From db77f995f6d7cca5b471635a393954e2bd34b65a Mon Sep 17 00:00:00 2001 From: memdmp Date: Thu, 28 Aug 2025 21:57:35 +0200 Subject: feat: exttool --- src/background.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/background.ts') diff --git a/src/background.ts b/src/background.ts index 65d7187..6c5843f 100644 --- a/src/background.ts +++ b/src/background.ts @@ -42,11 +42,6 @@ setTimeout(async () => { }); console.debug('Got result', built); const b = browser; - const brow: UserlandBrowser = { - get webRequest() { - return b.webRequest; - }, - }; const f = new Function( 'browser', built.code.includes('await') @@ -56,12 +51,11 @@ setTimeout(async () => { ); console.debug('Environment Information:', { func: f, - browser: brow, - realBrowser: b, + browser: b, }); - (globalThis as any).browser = brow; + (globalThis as any).browser = b; console.debug('Evaluating...'); - await f(brow); + await f(b); console.debug('Function Exited'); } }, 0); -- cgit v1.2.3