add autoLauncher util

This commit is contained in:
Abhinav 2022-08-19 19:28:54 +05:30
parent 2e99a7831c
commit a9a9bbd7b4

23
src/utils/autoLauncher.ts Normal file
View file

@ -0,0 +1,23 @@
import AutoLaunch from 'auto-launch';
class AutoLauncher {
instance: AutoLaunch;
constructor() {
const autoLauncher = new AutoLaunch({
name: 'ente',
isHidden: true,
});
this.instance = autoLauncher;
}
enable() {
this.instance.enable();
}
disable() {
this.instance.disable();
}
isEnabled() {
this.instance.isEnabled();
}
}
export default new AutoLauncher();