mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 14:16:01 +00:00
web-svelte => web
This commit is contained in:
7
packages/web/src/utility/getElectron.ts
Normal file
7
packages/web/src/utility/getElectron.ts
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