[AutoStart] Rewrite to use switch for index require, generic stub
This commit is contained in:
parent
5ad7eabea5
commit
b0c0e46065
2 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,13 @@
|
|||
// Stub for now at least, also retaining OpenAsar
|
||||
// Depends on platform
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
module.exports = require('./win32.js');
|
||||
break;
|
||||
|
||||
module.exports = require('./' + process.platform);
|
||||
case 'linux':
|
||||
module.exports = require('./linux.js');
|
||||
break;
|
||||
|
||||
default:
|
||||
module.exports = require('./stub.js');
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
// Stub in normal Discord
|
||||
// Stub (Darwin)
|
||||
exports.install = (callback) => { callback(); };
|
||||
exports.update = (callback) => { callback(); };
|
||||
exports.uninstall = (callback) => { callback(); };
|
||||
exports.isInstalled = (callback) => { callback(false); }; // Stub to true or false?
|
||||
exports.isInstalled = (callback) => { callback(false); };
|
Loading…
Reference in a new issue