How to communicate between addon process and panel page in Jetpack
What is the best way to send a variable to a pan开发者_运维知识库el? Do people use mustache.js? Right now I am able to load an HTML file but I am not able to communicate with it once i call panel.show()
To communicate between the panel page and the add-on's module you should use panel.port
(from the addon module) or self.port
(from the content script). See Communicating with Content Scripts for details.
精彩评论