mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 22:22:18 +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 () {
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user