Do Chrome extensions have access to local storage?

前端 未结 6 1988
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:39

    The current chrome version has local storage.

    I have used it myself. You can use modernizr to detect whether the browser supports it or not. I have written a solution for a client where I do a fallback to cookie if no local storage exists, but this shouldn't be a problem for extensions.

提交回复
热议问题