开发者

How to use jetpack.storage.setting in Jetpack SDK 0.9

When we use Jetpack 0.6, we could manifest something like this,

var manifest = {
  settings: [
    {
      name: "foo",
      type: "group",
      label: "Twitter Account",
      settings: [
        { name: "twitterId", type: "text", label: "Username" },
    开发者_如何学编程    { name: "twitterPass", type: "password", label: "Password" }
      ]
    }
  ]
};

jetpack.future.import("storage.settings");

Does anyone know how to do same thing in Jetpack SDK 0.9.

Which module should I use?


the import has changed to something like: var simpleStorage = require("simple-storage");

see: https://jetpack.mozillalabs.com/sdk/0.9/docs/#module/addon-kit/simple-storage

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜