more tweaks to adapt to vite builds

This commit is contained in:
2024-04-07 18:01:49 -06:00
parent 035f2a5b04
commit ce1e3a96c2
5 changed files with 2040 additions and 4562 deletions

View File

@@ -906,11 +906,11 @@ export default class AccountViewView extends Vue {
// Trigger the download
this.downloadDatabaseBackup(this.downloadUrl);
// Revoke the temporary URL -- not yet because of DuckDuckGo download failure
//URL.revokeObjectURL(this.downloadUrl);
// Notify the user that the download has started
this.notifyDownloadStarted();
// Revoke the temporary URL -- after a pause to avoid DuckDuckGo download failure
setTimeout(() => URL.revokeObjectURL(this.downloadUrl), 1000);
} catch (error) {
this.handleExportError(error);
}