1chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => { 2 if (msg.text === 'title') { 3 sendResponse(document.title); 4 } 5}); 6