0

I would like to access the variable "radium"" outside this function.

chrome.cookies.get({"url": "https://www.test.com/", "name": "radium"}, function(cookie) { radium = cookie.value; console.log(radium);//returns the value });

console.log(radium)//returns undefined

Having the same issue with this question in stackoverflow: Chrome extensions - Turning chrome.cookies.get into a variable

I did try to declare radium variable as a global variable above chrome.cookies.get() but no luck

0 Answers0