mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 14:06:00 +00:00
electron - work with exported files
This commit is contained in:
7
packages/web/src/utility/getElectron.js
Normal file
7
packages/web/src/utility/getElectron.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function getElectron() {
|
||||
if (window.require) {
|
||||
const electron = window.require('electron');
|
||||
return electron;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user