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