diff --git a/docs/guide/essentials/content-scripts.md b/docs/guide/essentials/content-scripts.md index caf74255..727ed096 100644 --- a/docs/guide/essentials/content-scripts.md +++ b/docs/guide/essentials/content-scripts.md @@ -239,6 +239,7 @@ export default defineContentScript({ onMount: (container) => { // Render your app to the UI container const unmount = render(() =>
...
, container); + return unmount; }, onRemove: (unmount) => { // Unmount the app when the UI is removed