Siamak A.Motlagh Siamak A.Motlagh - 2 months ago 26
Javascript Question

Chrome extension, Store data

I've read this question: Chrome Extensions & Javasctipy Database but I want an answer with more details and more clear.

How can I store some of my extension settings?

Is it possible to use a database to do such things with JavaScript?

Is there any good tutorial on it?

I don't want to use Local Storage, because I do not want the behavior of SESSIONS

Thanks.

Answer

You could use chrome.storage.sync or chrome.storage.local (docs). Both are local storage (not session storage); sync has the additional advantage that it syncs to the user's Google account if they've connected Chrome to it.