mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 00:01:19 +08:00
Fix typo in the DataCenter class init method (#3104)
This commit is contained in:
parent
68a180394d
commit
d282fd7612
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user