I added the following code to my other Google Chrome Extension ...
var storage = chrome.storage ; console.log("storage is " + storage) ; var bookmarks = chrome.bookmarks ; console.log("bookmarks is " + bookmarks) ;
After starting, the console says
storage is undefined bookmarks is [object Object]
In other words, bookmarks work fine, but storage is not in action. My manifest requested both ...
{ ... "permissions": [ "bookmarks", "tabs", "storage" ], }
In case it matters, this extension is installed as an external extension in Mac OS X. To make sure it was updated correctly, I copied the above code from the files installed in ~ / Library / Application Support / Google / Chrome / By default / extensions. And of course, I restarted Chrome.
Why can chrome.storage be undefined?
source share