0b70c0c0c1
1、移动popup的page、components 2、更新wxt的host权限 3、验证message传递逻辑
28 lines
559 B
TypeScript
28 lines
559 B
TypeScript
export const messages = {
|
|
popup: {
|
|
from: {
|
|
start: 'popup:start',
|
|
},
|
|
to: {
|
|
stoped: 'popup:stoped',
|
|
started: 'popup:started',
|
|
},
|
|
checkStatus: 'popup:check-status',
|
|
ready: 'popup:ready',
|
|
},
|
|
content: {
|
|
from: {},
|
|
to: {
|
|
startRecording: 'content:start-recording',
|
|
stopRecording: 'content:stop-recording',
|
|
},
|
|
checkStatus: 'content:check-status',
|
|
},
|
|
offscreen: {
|
|
to: {
|
|
startRecording: 'offscreen:start-recording',
|
|
stopRecording: 'offscreen:stop-recording',
|
|
},
|
|
},
|
|
};
|