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() { constructor() {
this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs']; this.ElectronAPIs = runningInBrowser() && window['ElectronAPIs'];
this.allElectronAPIsExist = !!this.ElectronAPIs.exists; this.allElectronAPIsExist = !!this.ElectronAPIs?.exists;
} }
async selectExportDirectory() { async selectExportDirectory() {
return await this.ElectronAPIs.selectRootDirectory(); return await this.ElectronAPIs.selectRootDirectory();