docs: Fix createShadowRootUi unmount calls

This commit is contained in:
Aaron Klinker
2024-02-10 04:04:16 -06:00
parent 6b8dfdf02d
commit 946072fc5a
+4 -4
View File
@@ -233,7 +233,7 @@ export default defineContentScript({
},
onRemove: (app) => {
// Unmount the app when the UI is removed
app.unmount();
app?.unmount();
},
});
@@ -268,7 +268,7 @@ export default defineContentScript({
},
onRemove: (root) => {
// Unmount the root when the UI is removed
root.unmount();
root?.unmount();
},
});
@@ -303,7 +303,7 @@ export default defineContentScript({
},
onRemove: (app) => {
// Destroy the app when the UI is removed
app.$destroy();
app?.$destroy();
},
});
@@ -335,7 +335,7 @@ export default defineContentScript({
},
onRemove: (unmount) => {
// Unmount the app when the UI is removed
unmount();
unmount?.();
},
});