1
This commit is contained in:
18
src/background/service.ts
Normal file
18
src/background/service.ts
Normal 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 };
|
||||
}
|
||||
Reference in New Issue
Block a user