Global variable space that is shared between chrome app windows
-
20-12-2019 - |
Question
Is there a way to create a global variable space between different windows of the same app? Accessing the main window's variables is also acceptable, I can bind angular on them.
Solution
chrome.runtime.getBackgroundPage(function callback) will give you access to the window object of the event page of the app from any other window. - rsanchez.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow