add autoLauncher util
This commit is contained in:
parent
2e99a7831c
commit
a9a9bbd7b4
23
src/utils/autoLauncher.ts
Normal file
23
src/utils/autoLauncher.ts
Normal 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();
|
Loading…
Reference in a new issue