From f7325d6e3564e897d3252fb79ded806b65347653 Mon Sep 17 00:00:00 2001 From: Oj Date: Thu, 28 Apr 2022 17:07:54 +0100 Subject: [PATCH] [AutoStart] Use index to fix PC support --- src/autoStart/index.js | 1 + src/bootstrap.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/autoStart/index.js diff --git a/src/autoStart/index.js b/src/autoStart/index.js new file mode 100644 index 0000000..e2da895 --- /dev/null +++ b/src/autoStart/index.js @@ -0,0 +1 @@ +module.exports = require('./' + process.platform); \ No newline at end of file diff --git a/src/bootstrap.js b/src/bootstrap.js index d1616e3..4ce0187 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -24,7 +24,7 @@ process.on('uncaughtException', console.error); const splash = require('./splash'); const updater = require('./updater/updater'); const moduleUpdater = require('./updater/moduleUpdater'); -const autoStart = require('./autoStart/' + process.platform); +const autoStart = require('./autoStart'); let desktopCore; const startCore = () => {