开发者

How to communicate between addon process and panel page in Jetpack

开发者 https://www.devze.com 2023-02-13 10:05 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消