fix allElectronAPIsExist intialisation
This commit is contained in:
parent
fc62728d85
commit
f45fd0d0e4
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue