Javascript Question

Equivalent of simple storage API for restartless firefox extension

Is there an equivalent to this API or a way to call it from a restartless extension? I need to store a few strings between browser sessions.

I have found this but it seems too complicated for simple string storage. Does the SS API use the same thing behind the scene?


You can import any SDK module into normal restartless extensions this way:

const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
const { require } = devtools;

let ss = require('sdk/simple-storage');