reticulum-meshchat/src/frontend/js/ElectronUtils.js
2024-08-06 01:17:45 +12:00

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;