How to inspect contents of storage.local in Chrome Packaged App?

后端 未结 2 1726
生来不讨喜
生来不讨喜 2020-12-30 10:22

Is there some way (extension, or special debug option) to inspect contents of storage in Chrome Packaged App, other than using javascript console?

Resources tab onl

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 11:00

    Try just typing:

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

    then look in the console.

提交回复
热议问题