fix(desktop): Fixed issue where local backup location would default to "[object Promise]"
This commit is contained in:
@@ -147,7 +147,7 @@ export class FilesBackupService extends AbstractService implements BackupService
|
||||
private async automaticallyEnableTextBackupsIfPreferenceNotSet(): Promise<void> {
|
||||
if (this.storage.getValue(StorageKey.TextBackupsEnabled) == undefined) {
|
||||
this.storage.setValue(StorageKey.TextBackupsEnabled, true)
|
||||
const location = `${await this.device.getUserDocumentsDirectory()}/${this.prependWorkspacePathForPath(
|
||||
const location = `${await this.device.getUserDocumentsDirectory()}/${await this.prependWorkspacePathForPath(
|
||||
TextBackupsDirectoryName,
|
||||
)}`
|
||||
this.storage.setValue(StorageKey.TextBackupsLocation, location)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "3.160.18",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"main": "dist/app.js",
|
||||
"author": "Standard Notes",
|
||||
"author": "Standard Notes.",
|
||||
"private": true,
|
||||
"files": [
|
||||
"dist"
|
||||
|
||||
Reference in New Issue
Block a user