feat:添加测试页面并优化时间戳工具
refactor: 优化时间戳转换组件及整体代码结构 chore: 更新构建配置和包依赖项
This commit is contained in:
@@ -15,6 +15,10 @@ export default defineContentScript({
|
||||
const recorder = createRecorder();
|
||||
let isRecording = false;
|
||||
|
||||
onMessage('getStringLength', (message) => {
|
||||
console.log(`[content] getStringLength received: ${message.data}`);
|
||||
});
|
||||
|
||||
// 监听来自 background script 的消息
|
||||
chrome.runtime.onMessage.addListener(
|
||||
(msg: { type: string }, _sender, sendResponse: (response: IResponse) => void) => {
|
||||
|
||||
Reference in New Issue
Block a user