mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
dismiss export screen when success
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class BrowserApi {
|
||||
static isSafariApi: boolean = (typeof safari !== 'undefined');
|
||||
static isChromeApi: boolean = (typeof chrome !== 'undefined');
|
||||
static isSafariApi: boolean = (typeof safari !== 'undefined') &&
|
||||
navigator.userAgent.indexOf(' Safari/') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
||||
static isChromeApi: boolean = !BrowserApi.isSafariApi && (typeof chrome !== 'undefined');
|
||||
|
||||
static async getTabFromCurrentWindowId(): Promise<any> {
|
||||
if (BrowserApi.isChromeApi) {
|
||||
|
||||
@@ -42,6 +42,7 @@ export class ExportController {
|
||||
const csv = await this.getCsv();
|
||||
this.$analytics.eventTrack('Exported Data');
|
||||
this.downloadFile(csv);
|
||||
this.$state.go('tabs.tools', { animation: 'out-slide-down' });
|
||||
} else {
|
||||
this.toastr.error(this.i18n.invalidMasterPassword, this.i18n.errorsOccurred);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user