1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-08 00:45:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

合并网页截图功能(张君秋的代码)

This commit is contained in:
2022-02-06 00:37:31 +08:00
parent 4f2a2acf81
commit 82304cc5a8
18 changed files with 476 additions and 33 deletions

View File

@@ -7,9 +7,10 @@ $(function() {
// 每次改变开关状态时刷新页面使功能及时生效
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
console.log('click');
location.reload();
sendResponse('Reload page');
// TODO: 这里不能这么写,否则会导致其他模块发送消息时触发页面刷新
// console.log('click');
// location.reload();
// sendResponse('Reload page');
})
// 控制功能是否开启
@@ -92,4 +93,4 @@ $(function() {
}
}
});
})
})

View File

@@ -6,9 +6,10 @@ $(function() {
console.log("[BitDance extension] 学生助手插件 - 鼠标样式模块加载成功");
// 每次改变开关状态时刷新页面使功能及时生效
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
console.log('mouse');
location.reload();
sendResponse('Reload page');
// TODO: 这里不能这么写,否则会导致其他模块发送消息时触发页面刷新
// console.log('mouse');
// location.reload();
// sendResponse('Reload page');
})
// 控制功能是否开启
@@ -24,4 +25,4 @@ $(function() {
});
}
})
})
})