Where to store user settings in Electron (Atom Shell) Application?

前端 未结 6 914
你的背包
你的背包 2020-12-07 14:45

I can\'t seem to locate a built in mechanism to store user settings. I was hoping that electron provided a standard method for storing user settings across all desktop platf

6条回答
  •  失恋的感觉
    2020-12-07 15:06

    One could store data in cookies; Electron has a mechanism for it (https://electronjs.org/docs/api/cookies) and the cookies can be retrieved in the browser (Angular: https://docs.angularjs.org/api/ngCookies/service/$cookies, React/Other: https://github.com/reactivestack/cookies)

    I was able to get it working with Angularjs.

提交回复
热议问题