点击设置打开自定义页面,firefox addon SDK [英] Open custom page on the settings click, firefox addon SDK

查看:145
本文介绍了点击设置打开自定义页面,firefox addon SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆