Store an array with chrome.storage.local
I think you’ve mistaken localStorage for the new Chrome Storage API. – You needed JSON strings in case of the localStorage – You can store objects/arrays directly with the new Storage API // by passing an object you can define default values e.g.: [] chrome.storage.local.get({userKeyIds: []}, function (result) { // the input argument is ALWAYS … Read more