9951 explained code solutions for 126 technologies


chrome-extensionGet object from chrome.storage


chrome.storage.sync.get(['obj'], function(res) { console.log(res.obj); });ctrl + c
chrome.storage

extension storage API

.get

gets objects from storage by specified keys

['obj']

array of keys to get from storage (we only ask for one obj key)

console.log(res.obj)

code to manipulate object from storage (saved to obj key)