mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-19 14:36:26 -05:00
21 lines
373 B
JavaScript
21 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;
|