tfoxy / chrome-promise

Promises for chrome JavaScript APIs used in extensions and apps.
MIT License
150 stars 14 forks source link

chrome.promise.storage.local.get not work #1

Closed Xrymz closed 9 years ago

Xrymz commented 9 years ago
chrome.promise = new ChromePromise();
function get(key) {
    return chrome.promise.storage.local.get(key);
}
TypeError: Cannot read property 'functionSchemas' of null
    at self.(anonymous function) (extensions::StorageArea:26:27)
    at setPromiseFunction (chrome-extension://***/assets/chrome-promise/chrome-promise.js:47:25)
    at Object.setPromiseFunction [as get] (chrome-extension://***/assets/chrome-promise/chrome-promise.js:35:24)
tfoxy commented 9 years ago

Thanks for opening the issue. Tomorrow I will try to reproduce and fix the error.

tfoxy commented 9 years ago

I had some spare time today to fix the issue. Try the new version.

Xrymz commented 9 years ago

work, perfect. thx!