diff options
Diffstat (limited to 'ext/js/pages/settings/backup-controller.js')
-rw-r--r-- | ext/js/pages/settings/backup-controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/pages/settings/backup-controller.js b/ext/js/pages/settings/backup-controller.js index f0876d3f..c4f3a97a 100644 --- a/ext/js/pages/settings/backup-controller.js +++ b/ext/js/pages/settings/backup-controller.js @@ -122,7 +122,7 @@ export class BackupController { timeSeparator, date.getUTCMinutes().toString().padStart(2, '0'), timeSeparator, - date.getUTCSeconds().toString().padStart(2, '0') + date.getUTCSeconds().toString().padStart(2, '0'), ]; return values.slice(0, resolution * 2 - 1).join(''); } @@ -152,7 +152,7 @@ export class BackupController { environment, userAgent: navigator.userAgent, permissions, - options: optionsFull + options: optionsFull, }; } @@ -285,7 +285,7 @@ export class BackupController { e.preventDefault(); complete({ result: true, - sanitize: element.dataset.importSanitize === 'true' + sanitize: element.dataset.importSanitize === 'true', }); modal.setVisible(false); }; @@ -580,7 +580,7 @@ export class BackupController { /** @type {unknown} */ // @ts-expect-error - The export function is declared as an extension which has no type information. const blob = await db.export({ - progressCallback: this._databaseExportProgressCallback.bind(this) + progressCallback: this._databaseExportProgressCallback.bind(this), }); db.close(); return /** @type {Blob} */ (blob); @@ -644,7 +644,7 @@ export class BackupController { async _importDatabase(_databaseName, file) { await this._settingsController.application.api.purgeDatabase(); await Dexie.import(file, { - progressCallback: this._databaseImportProgressCallback.bind(this) + progressCallback: this._databaseImportProgressCallback.bind(this), }); void this._settingsController.application.api.triggerDatabaseUpdated('dictionary', 'import'); this._settingsController.application.triggerStorageChanged(); |