PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.03k stars 346 forks source link

[BUG] sidePanel example not working #1029

Open NoureddinBakir opened 1 month ago

NoureddinBakir commented 1 month ago

What happened?

Both following the sidePanel example and downloading the example result in a non-functional system. The project might be incomplete but as I'm just learning to work with plasmo, there is no way to figure out what is wrong.

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct

mmlmike010 commented 1 month ago

+1

anirudhnair42 commented 1 month ago

+1

selvanram commented 2 weeks ago

+1

angelottie commented 1 week ago

Adding a background.ts file to the main folder with the following content should do the trick:

chrome.runtime.onInstalled.addListener(() => {
    chrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true });
});