plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] sidePanel example not working

Open NoureddinBakir opened this issue 1 year ago • 7 comments

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

  • [ ] I would like to fix this BUG via a PR

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I checked the current issues for duplicate problems.

NoureddinBakir avatar Jul 17 '24 11:07 NoureddinBakir

+1

mmlmike010 avatar Jul 18 '24 17:07 mmlmike010

+1

anirudhnair42 avatar Jul 23 '24 16:07 anirudhnair42

+1

selvanram avatar Aug 13 '24 17:08 selvanram

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 });
});

angelottie avatar Aug 21 '24 08:08 angelottie

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 });
});
image Is there any other operation?

duoluodexiaoxiaoyuan avatar Oct 06 '24 00:10 duoluodexiaoxiaoyuan

+1

steventanyang avatar Dec 01 '24 05:12 steventanyang

Hi @NoureddinBakir. Please provide the error you are receiving. Otherwise it's difficult to understand the issue you're experiencing.

pippinmole avatar Feb 09 '25 12:02 pippinmole