From 4c535cfb8989dd3598f0aea54b2c6651e437b89d Mon Sep 17 00:00:00 2001 From: Oj Date: Tue, 14 Dec 2021 22:50:09 +0000 Subject: [PATCH] [FirstRun] Use generic stub file for reuse --- src/firstRun/darwin.js | 3 +-- src/firstRun/index.js | 1 - src/firstRun/linux.js | 3 +-- src/firstRun/stub.js | 2 ++ 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 src/firstRun/stub.js diff --git a/src/firstRun/darwin.js b/src/firstRun/darwin.js index fb6b9ea..c9ebd99 100644 --- a/src/firstRun/darwin.js +++ b/src/firstRun/darwin.js @@ -1,2 +1 @@ -// Stub in normal Discord -exports.performFirstRunTasks = () => {}; \ No newline at end of file +module.exports = require('./stub'); \ No newline at end of file diff --git a/src/firstRun/index.js b/src/firstRun/index.js index 00cdcbc..c7fdb7b 100644 --- a/src/firstRun/index.js +++ b/src/firstRun/index.js @@ -1,3 +1,2 @@ // Stub for now at least - module.exports = require('./' + process.platform); \ No newline at end of file diff --git a/src/firstRun/linux.js b/src/firstRun/linux.js index fb6b9ea..c9ebd99 100644 --- a/src/firstRun/linux.js +++ b/src/firstRun/linux.js @@ -1,2 +1 @@ -// Stub in normal Discord -exports.performFirstRunTasks = () => {}; \ No newline at end of file +module.exports = require('./stub'); \ No newline at end of file diff --git a/src/firstRun/stub.js b/src/firstRun/stub.js new file mode 100644 index 0000000..8fed1ae --- /dev/null +++ b/src/firstRun/stub.js @@ -0,0 +1,2 @@ +// Generic exports for stub (Linux and Darwin use it), normal Discord +exports.performFirstRunTasks = () => {}; \ No newline at end of file