diff options
Diffstat (limited to 'src/background.ts')
-rw-r--r-- | src/background.ts | 12 |
1 files changed, 3 insertions, 9 deletions
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); |