Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to see chrome sync storage and local storage

//It is true that stuff saved using chrome.storage does not show up in developer tools, there you can only see stuff saved using regular localStorage API. Do this:

//Open your extension's background page by going to chrome://extensions/ ("Developer mode" needs to be checked to see background pages)

//Go to the Console tab and type this:

chrome.storage.local.get(function(result){console.log(result)})

//This will spit the whole storage as a JSON object into the console.
//The slightly shorter equivalent is chrome.storage.local.get(console.log). There's also chrome.storage.sync.get(console.log)
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to get http request and store the response in a variable in angular 
Javascript :: express limit based on ip 
Javascript :: js get svg width 
Javascript :: window vue remove event listener 
Javascript :: javascript hide address bar mobile 
Javascript :: Ts get first string char 
Javascript :: discord.js set activity 
Javascript :: find only duplicate data javascript object 
Javascript :: convert fetch data to json 
Javascript :: make select option selected javascript 
Javascript :: how to cut a string uptil specific character javascript 
Javascript :: scroll down up js 
Javascript :: javascript reload page 
Javascript :: react check if in mobile 
Javascript :: js fizzbuzz 
Javascript :: javascript dynamicly include another js file 
Javascript :: check if string is datestring javascript 
Javascript :: lodash pascal case 
Javascript :: java password regex 
Javascript :: bottom tab navigator react native transparent 
Javascript :: how to pretty formatjson value on terminal ruby 
Javascript :: csrf token method 
Javascript :: excel datatable 
Javascript :: node get root directory 
Javascript :: for of with index 
Javascript :: fetch patch method 
Javascript :: bootstrap in react 
Javascript :: javascript get element by custom attribute 
Javascript :: push items to associative array jquery 
Javascript :: prototype pollution 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =