注释
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { handleBackgroundCommand, handleInstalled, handleStartup, handleWindowRemoved } from './service';
|
||||
import { handleBackgroundCommand, handleInstalled, handleStartup, handleWindowRemoved } from './service';
|
||||
import type { BackgroundCommand } from './types';
|
||||
|
||||
chrome.runtime.onInstalled.addListener(() => {
|
||||
@@ -18,7 +18,9 @@ chrome.windows.onRemoved.addListener((windowId) => {
|
||||
void handleWindowRemoved(windowId);
|
||||
});
|
||||
|
||||
/** 统一包装后台消息处理,确保异步错误能回给调用方。 */
|
||||
/**
|
||||
* 统一包装后台消息处理,确保异步错误能回给调用方。
|
||||
*/
|
||||
async function handleBackgroundMessage(
|
||||
message: BackgroundCommand,
|
||||
sendResponse: (response?: unknown) => void,
|
||||
|
||||
Reference in New Issue
Block a user