devtools界面和content.js进行交互

This commit is contained in:
许彦峰
2019-03-16 19:18:29 +08:00
parent a8a26154f8
commit f00ae2cf90
5 changed files with 45 additions and 26 deletions

View File

@@ -1,6 +1,5 @@
function shortConnectionLink(request, sender, sendResponse) {
console.log(`%c[短连接|id:${sender.id}|url:${sender.url}]\n${JSON.stringify(request)}`, 'background:#aaa;color:#BD4E19')
console.log(request);
sendResponse && sendResponse(request);
}