Replace deprecated sdk/widget, without using toolbar from Australis

允我心安 提交于 2019-12-08 03:40:11

问题


Since some time sdk/widget is deprecated and according to https://blog.mozilla.org/addons/2014/03/13/new-add-on-sdk-australis-ui-features-in-firefox-29/ sdk/ui/ should be used instead.

Unfortunately sdk/ui/frame places itself on sdk/ui/toolbar and it may be not moved to main menu. Toolbar is unacceptable for me, but sdk/widget support will be dropped in future - so I need some solution.

For reference - sdk/widget frame (with purple, fully filled progress bars) and a sdk/ui abomination with its own menu below (black, not filled progress bars).


回答1:


You can fork the widget module and publish it on npm and try to support it.

Just copy and paste it to a new module, remove the deprecation warnings, and publish that on npm, and start using it with jpm

For more information on moving to JPM from cfx click here.



来源:https://stackoverflow.com/questions/26730618/replace-deprecated-sdk-widget-without-using-toolbar-from-australis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!