消息传递重构&支持侧边面板

This commit is contained in:
IndieKKY
2024-10-05 19:55:43 +08:00
parent c1c21c2fee
commit b283695b02
18 changed files with 454 additions and 214 deletions

4
src/typings.d.ts vendored
View File

@@ -18,10 +18,12 @@ interface MessageResult {
interface MethodContext {
from: MessageFrom
event: any
sender?: chrome.runtime.MessageSender | null
tabId?: number
// sender?: chrome.runtime.MessageSender | null
}
interface EnvData {
sidePanel?: boolean
manualInsert?: boolean //是否手动插入字幕列表
autoExpand?: boolean
flagDot?: boolean