+ 1
Chrome.storage.local.get issue
I'm working on a chrome extension I'm facing issue when I want to get back my saved data, when I use console.log inside chrome storage api it works but when I assign it to a variable it returns undefined
2 ответов
+ 2
I've found that chrome.stroage acts async so I've to wait for about 1.5s to get the result, I've achieved that using setTimeout function thank you Ipang
+ 1
Save a copy of the code in SoloLearn and share its link inside your post Description. It might help improve your chances for answers 👍