Fix typo in the DataCenter class init method (#3104)

This commit is contained in:
vdeschuy 2022-03-07 16:16:05 +01:00 committed by GitHub
parent 68a180394d
commit d282fd7612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class DataCenter extends EventEmitter {
} }
init () { init () {
const defaltData = { const defaultData = {
imageFolderPath: path.join(this.userDataPath, 'images'), imageFolderPath: path.join(this.userDataPath, 'images'),
screenshotFolderPath: path.join(this.userDataPath, 'screenshot'), screenshotFolderPath: path.join(this.userDataPath, 'screenshot'),
webImages: [], webImages: [],
@ -46,7 +46,7 @@ class DataCenter extends EventEmitter {
} }
if (!this.hasDataCenterFile) { if (!this.hasDataCenterFile) {
this.store.set(defaltData) this.store.set(defaultData)
ensureDirSync(this.store.get('screenshotFolderPath')) ensureDirSync(this.store.get('screenshotFolderPath'))
} }
this._listenForIpcMain() this._listenForIpcMain()