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

完成番茄钟合并(张松的代码)

This commit is contained in:
2022-02-05 19:22:27 +08:00
parent b946803645
commit 4f2a2acf81
23 changed files with 636 additions and 14 deletions

View File

@@ -70,12 +70,5 @@ $(function() {
btnDirectUrl.addEventListener("change", () => {
chrome.storage.sync.set({ linkOpen: !btnDirectUrl.checked });
// 获取当前tab窗口
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
chrome.scripting.executeScript({
target: { tabId: tabs[0].id },
func: () => { window.location.reload() },
});
});
});
})