javascript - Google Chrome extension Storage no value -


i trying update javascript knowledge,

at moment developing google chrome extension, tried save information in local storage, of course, data deleted after close browser.

i thought in use chrome.storage stupid reason, not working (manifiest file edited storage permissions provided)

here example code :

chrome.storage.local.set({"srsaved": "asdasd"}, function(){}); chrome.storage.local.get("srsaved", function(result){idlist = result;});  

if inside getter function print value of result, object , data there, ok, idlist value undefined, strange, , , of course idlist declared before

someone can bring me light problem?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -