mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Use a separate config file in development mode
This commit is contained in:
parent
2d3a20e4cd
commit
182c6f295e
@ -1,5 +1,7 @@
|
||||
import Store from "electron-store"
|
||||
|
||||
const isDev = !!process.env.VITE_DEV_SERVER_URL
|
||||
|
||||
const schema = {
|
||||
additionalProperties: false,
|
||||
|
||||
@ -47,4 +49,4 @@ const defaults = {
|
||||
theme: "system",
|
||||
}
|
||||
|
||||
export default new Store({schema, defaults})
|
||||
export default new Store({schema, defaults, name: isDev ? "config-dev" : "config"})
|
||||
|
Loading…
Reference in New Issue
Block a user