In my app I have a namespaced application and there's information or metadata myApp
carries on it that might be useful to devpane.
window.myApp = new App();
How can I relay or send the following information to the
devtool.js
?window.myApp.metadata; // information
And can I send a request from the devtool with a function that customizes the serialization of that metadata?
I've seen similar posts with the solution below, which returns null
when I tried it.
chrome.devtools.inspectedWindow.eval("window.myApp", {
useContentScriptContext: true
})
NOTE: If a sample template can be provided that would be wonderful.