I can get Html-DOM in contentScript.js file though chrome.API but when I send the DOM to popup.js....The callback function in chrome.tabs.sendMessage() event handler returns me an "object" of DOM instead of an "actual DOM" in popup.js.
I have shared my screenshot of console.log() and code below.
If I'm doing something wrong then please correct my mistake and guide me how do i achieve this task?
Expected Requirement:
i need to get current tab/webpage's HTML DOM in my popup.js through contentScript.js