Is the `chrome.runtime` API no longer available from regular pages? -


several months ago, played code used chrome.runtime api within regular page's js runtime (meaning, not extension's background script).

now, using same code, chrome.runtime undefined. did change?

i've got background script listens external messages, , i'd send message extension using chrome.runtime.sendmessage() page.

chrome.runtime.sendmessage should available page if have installed extension lists site externally_connectable. see here.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -