function getAccessKeyId() {
var a;
chrome.storage.local.get(null, function (result) {
a = result.AWSAccessKeyId
})
console.log(a)
return AWS_ACCESS_KEY;
}
function getAccessKeyId() {
return new Promise(function(resolve){
chrome.storage.local.get(null, function (result) {
resolve(result.AWSAccessKeyId);
});
});
};
getAccessKeyId().then(function(key){
console.log(key);
});