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> {
|
private async automaticallyEnableTextBackupsIfPreferenceNotSet(): Promise<void> {
|
||||||
if (this.storage.getValue(StorageKey.TextBackupsEnabled) == undefined) {
|
if (this.storage.getValue(StorageKey.TextBackupsEnabled) == undefined) {
|
||||||
this.storage.setValue(StorageKey.TextBackupsEnabled, true)
|
this.storage.setValue(StorageKey.TextBackupsEnabled, true)
|
||||||
const location = `${await this.device.getUserDocumentsDirectory()}/${this.prependWorkspacePathForPath(
|
const location = `${await this.device.getUserDocumentsDirectory()}/${await this.prependWorkspacePathForPath(
|
||||||
TextBackupsDirectoryName,
|
TextBackupsDirectoryName,
|
||||||
)}`
|
)}`
|
||||||
this.storage.setValue(StorageKey.TextBackupsLocation, location)
|
this.storage.setValue(StorageKey.TextBackupsLocation, location)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"version": "3.160.18",
|
"version": "3.160.18",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"main": "dist/app.js",
|
"main": "dist/app.js",
|
||||||
"author": "Standard Notes",
|
"author": "Standard Notes.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
Reference in New Issue
Block a user