v_jstools/tools/error_front.js
2021-10-23 16:53:52 +08:00

5 lines
233 B
JavaScript

function send_error_info_to_front(e, tid, url){
chrome.tabs.query({active: true, currentWindow: true}, function(tabs){
chrome.tabs.sendMessage(tid, {action: {type:'error', info: url + '\n' + e}}, function(response) {});
});
}