Merge pull request #268 from ente-io/master

This commit is contained in:
Vishnu Mohandas 2021-12-19 15:28:22 +05:30 committed by GitHub
commit b0eb146680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ class ExportService {
constructor() {
this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs'];
this.allElectronAPIsExist = !!this.ElectronAPIs.exists;
this.allElectronAPIsExist = !!this.ElectronAPIs?.exists;
}
async selectExportDirectory() {
return await this.ElectronAPIs.selectRootDirectory();