This commit is contained in:
zhu
2026-04-30 10:55:03 +08:00
commit 48ce6a8b0b
27 changed files with 2970 additions and 0 deletions

18
src/background/service.ts Normal file
View File

@@ -0,0 +1,18 @@
import type { BackgroundCommand } from './types';
export async function handleInstalled(): Promise<void> {
console.log('[background] installed');
}
export async function handleStartup(): Promise<void> {
console.log('[background] startup');
}
export async function handleWindowRemoved(windowId: number): Promise<void> {
console.log('[background] window removed', windowId);
}
export async function handleBackgroundCommand(message: BackgroundCommand): Promise<unknown> {
console.log('[background] message', message);
return { ok: true };
}