添加模糊记忆功能

This commit is contained in:
ytc1012
2025-12-11 13:41:09 +08:00
parent ea0976b75b
commit ff85d891d4
5 changed files with 845 additions and 11 deletions

View File

@@ -123,7 +123,7 @@ toggleBtn.addEventListener('click', async () => {
statusDiv.className = 'status';
isBlurMode = !isBlurMode; // 恢复状态
} else {
console.log('[BlurText] Message sent successfully');
console.log('[BlurText] Message sent successfully, response:', response);
}
});
@@ -169,7 +169,7 @@ function updateUI() {
}
// 监听来自 content script 的消息
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
chrome.runtime.onMessage.addListener((request) => {
if (request.action === 'blurModeDisabled') {
isBlurMode = false;
updateUI();