0

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

0

1 Answer 1

2

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); }); 
Sign up to request clarification or add additional context in comments.

5 Comments

is there any method that i can print the result.dataflowid outside the function?
Why would you need to do that?
i need the data in another function
Call the function from the callback, and pass it as a parameter?
do you have maybe a example im new in js

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.