File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -211,9 +211,7 @@ export default defineContentScript({
211
211
anchor: ' body' ,
212
212
onMount : (container ) => {
213
213
// Create the Svelte app inside the UI container
214
- mount (App , {
215
- target: container ,
216
- });
214
+ return mount (App , { target: container });
217
215
},
218
216
onRemove : (app ) => {
219
217
// Destroy the app when the UI is removed
@@ -396,11 +394,9 @@ export default defineContentScript({
396
394
anchor: ' body' ,
397
395
onMount : (container ) => {
398
396
// Create the Svelte app inside the UI container
399
- mount (App , {
400
- target: container ,
401
- });
397
+ return mount (App , { target: container });
402
398
},
403
- onRemove : () => {
399
+ onRemove : (app ) => {
404
400
// Destroy the app when the UI is removed
405
401
unmount (app );
406
402
},
You can’t perform that action at this time.
0 commit comments