Do Chrome extensions have access to local storage?

前端 未结 6 1997
Happy的楠姐
Happy的楠姐 2020-12-23 11:47

Is it possible to store data in a way that will be accessible after a browser restart in the context of a chrome extension?

6条回答
  •  清酒与你
    2020-12-23 12:44

    there are already some great answers here, but note that if you decide to use a content script in your extension, that content script won't have access to localStorage. therefore chrome.storage is a good alternative.

提交回复
热议问题