Check chrome.storage.sync while debugging the Chrome extension.

Chrome DevTools has a handy inspector for local storage and session storage, but there is nothing to check for chrome.storage.sync ?

enter image description here

chrome://sync-internals/doesn't seem to display the actual contents of the synchronized memory on the extension.

+4
source share
2 answers

Storage area expander expands the user interface for viewing, editing, clean up, import and export chrome.storage.local, chrome.storage.sync, localStorageand sessionStorage:

screenshot

+5
source

- get . , :

chrome.storage.sync.get(null, function callback(items) { console.log(items) });
0

Source: https://habr.com/ru/post/1606228/


All Articles