Skip to content

Commit

Permalink
Use a separate config file in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Jul 4, 2023
1 parent 2d3a20e commit 182c6f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion electron/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Store from "electron-store"

const isDev = !!process.env.VITE_DEV_SERVER_URL

const schema = {
additionalProperties: false,

Expand Down Expand Up @@ -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"})

0 comments on commit 182c6f2

Please sign in to comment.