点击设置打开自定义页面,firefox addon SDK [英] Open custom page on the settings click, firefox addon SDK
问题描述
我使用简单-prefs 的选项,但是当用户点击Firefox插件管理器中的设置按钮时,如何打开自定义页?
谢谢帮助!
据我所知,你不能。如果您有一些首选项无法由simple-prefs系统表达,您可以在您的加载项的首选项中添加一个按钮,以便在新选项卡或窗口中打开自定义页面。请参阅控制
类型: https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/simple-prefs.html
我的建议是,尽可能地坚持简单的选择,因为它们在使用Firefox Sync的计算机和设备之间同步。
I'm using Firefox addon-SDK to create my addon.
I use simple-prefs for the options, but how can I open custom page when user clicks on the "Settings" button in the Firefox addon manager?
Thank you for any help!
As far as I know, you can't. If you have some preferences that cannot be expressed by the simple-prefs system, you could add a button in the preferences of your add-on that can open a custom page in a new tab, or window. See control
type: https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/simple-prefs.html
My suggestion, is stick to the simple-prefs when is possible, because they're synchronized across computers and devices using Firefox Sync.
这篇关于点击设置打开自定义页面,firefox addon SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!