chromeworker/chromeproxy/content/inject.js
2020-11-24 15:16:37 +08:00

23 lines
285 B
JavaScript

var href = window.location.href;
if(href.startsWith(Host)) {
setInterval(function(){
GetTask();
}, 1);
}
function GetTask() {
try {
chrome.runtime.sendMessage({ type: BackgroundMsgType.GETTASK }, function(){});
} catch (error) {
console.log(error);
}
};