1.4.0 • Published 8 years ago

webext-getBytesInUse-polyfill v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

chrome.storage.local.getBytesInUse polyfill

Currently, Firefox has not implemented the getBytesInUse method for the local storage area. This polyfill fixes that in both chrome and browser namespaces.

Example Usage

require("webext-getBytesInUse-polyfill");

browser.storage.local.set({hello: "there!"})
    .then(browser.storage.local.getBytesInUse("hello"))
    .then((bytes) => console.log("Bytes consumed: " + bytes))
    .error(() => console.log("Storage limit exceeded!"));
1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago