mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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:
parent
91fe3652dc
commit
92fd9301fe
1 changed files with 2 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue