File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/wxt/src/utils/content-script-ui Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/** @module wxt/utils/content-script-ui/shadow-root */
2+ import { browser } from 'wxt/browser' ;
23import { ContentScriptContext } from '../content-script-context' ;
34import type { ContentScriptUi , ContentScriptUiOptions } from './types' ;
45import { createIsolatedElement } from '@webext-core/isolated-element' ;
@@ -91,10 +92,9 @@ export async function createShadowRootUi<TMounted>(
9192 * Load the CSS for the current entrypoint.
9293 */
9394async function loadCss ( ) : Promise < string > {
94- // @ts -expect-error: getURL is defined per-project, but not inside the package
95- const url = browser . runtime . getURL (
96- `/content-scripts/${ import . meta. env . ENTRYPOINT } .css` ,
97- ) ;
95+ const url = browser . runtime
96+ // @ts -expect-error: getURL is defined per-project, but not inside the package
97+ . getURL ( `/content-scripts/${ import . meta. env . ENTRYPOINT } .css` ) ;
9898 try {
9999 const res = await fetch ( url ) ;
100100 return await res . text ( ) ;
You can’t perform that action at this time.
0 commit comments