mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-19 22:46:25 -05:00
22 lines
373 B
JavaScript
22 lines
373 B
JavaScript
|
|
class ElectronUtils {
|
||
|
|
|
||
|
|
static isElectron() {
|
||
|
|
return window.electron != null;
|
||
|
|
}
|
||
|
|
|
||
|
|
static relaunch() {
|
||
|
|
if(window.electron){
|
||
|
|
window.electron.relaunch();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
static showPathInFolder(path) {
|
||
|
|
if(window.electron){
|
||
|
|
window.electron.showPathInFolder(path);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
export default ElectronUtils;
|