File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -254,9 +254,9 @@ export default defineContentScript({
254
254
// 2. Set cssInjectionMode
255
255
cssInjectionMode: ' ui' ,
256
256
257
- main(ctx ) {
257
+ async main(ctx ) {
258
258
// 3. Define your UI
259
- const ui = createShadowRootUi (ctx , {
259
+ const ui = await createShadowRootUi (ctx , {
260
260
name: ' example-ui' ,
261
261
position: ' inline' ,
262
262
anchor: ' #anchor' ,
@@ -288,9 +288,9 @@ export default defineContentScript({
288
288
// 2. Set cssInjectionMode
289
289
cssInjectionMode: ' ui' ,
290
290
291
- main(ctx ) {
291
+ async main(ctx ) {
292
292
// 3. Define your UI
293
- const ui = createShadowRootUi (ctx , {
293
+ const ui = await createShadowRootUi (ctx , {
294
294
name: ' example-ui' ,
295
295
position: ' inline' ,
296
296
anchor: ' #anchor' ,
@@ -323,9 +323,9 @@ export default defineContentScript({
323
323
// 2. Set cssInjectionMode
324
324
cssInjectionMode: ' ui' ,
325
325
326
- main(ctx ) {
326
+ async main(ctx ) {
327
327
// 3. Define your UI
328
- const ui = createShadowRootUi (ctx , {
328
+ const ui = await createShadowRootUi (ctx , {
329
329
name: ' example-ui' ,
330
330
position: ' inline' ,
331
331
anchor: ' #anchor' ,
You can’t perform that action at this time.
0 commit comments