Skip to content

Commit

Permalink
Use a standardized config file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjbutler committed Feb 5, 2022
1 parent 28c2434 commit a94a905
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ protocol.registerSchemesAsPrivileged([
])

const preferences = new Preferences({
name: basename(process.argv0),
defaults: {
obsConnection: null,
sourceFilter: '',
Expand Down
3 changes: 1 addition & 2 deletions src/electron/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as path from 'path'
import * as fs from 'fs'

export interface StoreOptions {
name: string
defaults: { [index: string]: unknown }
}

Expand All @@ -13,7 +12,7 @@ export class Store {

constructor(options: StoreOptions) {
const userDataPath = app.getPath('userData');
this.path = path.join(userDataPath, options.name + '.json');
this.path = path.join(userDataPath, 'config.json');
this.data = parseDataFile(this.path, options.defaults);
}

Expand Down

0 comments on commit a94a905

Please sign in to comment.