From a9a9bbd7b48f4d67e0598bec8ad422621c5f692f Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 19 Aug 2022 19:28:54 +0530 Subject: [PATCH] add autoLauncher util --- src/utils/autoLauncher.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/utils/autoLauncher.ts diff --git a/src/utils/autoLauncher.ts b/src/utils/autoLauncher.ts new file mode 100644 index 000000000..cfe503235 --- /dev/null +++ b/src/utils/autoLauncher.ts @@ -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();