fix allElectronAPIsExist for import service

This commit is contained in:
Abhinav 2022-04-13 13:32:25 +05:30
parent 37a3d551bf
commit 3f405de8a0

View file

@ -8,7 +8,7 @@ class ImportService {
constructor() {
this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs'];
this.allElectronAPIsExist = !!this.ElectronAPIs?.exists;
this.allElectronAPIsExist = !!this.ElectronAPIs?.getPendingUploads;
}
async showUploadFilesDialog(): Promise<ElectronFile[]> {