Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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);
});
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading