I have a JavaScript file that currently gets injected by
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
at the end of the inject.js page there is a string value I get from the webpage it is injected on and I want do display that string value in the popup.html.
The problem I currently have is that the only way I was able to get the string value from the other page was with chrome.storage
which is called asynchronously and I couldn't figure out a way to allow the HTML to update.
Basically I want a string variable output
from an injected JavaScript file on a website to be put into my popup.html window.