electron - work with exported files

This commit is contained in:
Jan Prochazka
2020-06-07 18:42:21 +02:00
parent 2f363f6969
commit 22fa92520d
3 changed files with 68 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
export default function getElectron() {
if (window.require) {
const electron = window.require('electron');
return electron;
}
return null;
}