Returning Chrome storage API value without function
问题 For the past two days I have been working with chrome asynchronous storage. It works \"fine\" if you have a function. (Like Below): chrome.storage.sync.get({\"disableautoplay\": true}, function(e){ console.log(e.disableautoplay); }); My problem is that I can\'t use a function with what I\'m doing. I want to just return it, like LocalStorage can. Something like: var a = chrome.storage.sync.get({\"disableautoplay\": true}); or var a = chrome.storage.sync.get({\"disableautoplay\": true},