v_jstools/tools/error_front.js
2021-10-21 21:19:56 +08:00

5 lines
215 B
JavaScript

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