Js: chrome storage get content

I want to extract the content of dataflowid in the chrome storage but i get the output on the photo down bellow

var a = chrome.storage.sync.get(['dataflowid']);
console.log(a)

enter image description here

>Solution :

You need to log the value in the callback function (second parameter to get()) per the docs:

chrome.storage.sync.get(['dataflowid'], function(result) {
  console.log('Value currently is ' + result.dataflowid);
});

Leave a Reply