Chrome Extension: Switching From Localstorage To Chrome.storage.local
I finally got one of my first JS scripts running as planned in Firefox. Now I need to switch to chrome.storage because it will otherwise not run in my extension. Basically I want t
Solution 1:
chrome.storage.local.get
is asynchronous, it is mean, Chrome returns value to callback function:
chrome.storage.local.get("ts_id_js", function(obj) {
let value = obj["ts_id_js"];
});
Post a Comment for "Chrome Extension: Switching From Localstorage To Chrome.storage.local"