fix(plugins): remove duplicate side panel registration in procrastination-buster

Remove manual registerSidePanelButton() call since the side panel button
is already automatically registered via manifest.json with 'sidePanel: true'.

This fixes:
- Duplicate side panel button warning
- Plugin loading in both side panel and main view simultaneously

The manifest-based registration is sufficient and avoids duplication.
This commit is contained in:
Johannes Millan 2026-01-16 21:19:53 +01:00
parent 91fe3652dc
commit 92fd9301fe

View file

@ -6,14 +6,8 @@ declare const plugin: PluginAPI;
// Plugin initialization
plugin.log.info('Procrastination Buster plugin initialized');
// Register side panel button
plugin.registerSidePanelButton({
icon: 'psychology',
label: 'Procrastination Buster',
onClick: () => {
plugin.showIndexHtmlAsView();
},
});
// Note: Side panel button is automatically registered via manifest.json
// with "sidePanel": true, so no manual registration needed
// i18n support - handle translation requests from iframe
if (plugin.onMessage) {