How do you programatically close the popup?

I'm trying to hide/close the popup once the user has finished interacting with it. Is there a programatic way to trigger closing it? Closest thing I've been able to find is this internal API, which doesn't seem accessible from within popup.tsx: https://github.com/yoloforks/plasmo/blob/main/cli/plasmo/src/features/manifest-factory/mv3.ts#L16
GitHub
plasmo/cli/plasmo/src/features/manifest-factory/mv3.ts at main · yo...
The browser extension framework. Contribute to yoloforks/plasmo development by creating an account on GitHub.
2 Replies
theycallmeswift
theycallmeswift•12mo ago
The answer is to call window.close() from within the component for future reference!
Arcane
Arcane•12mo ago
@theycallmeswift has reached level 1. GG!
Want results from more Discord servers?
Add your server