Resolve client script path instead of hardcoding

This commit is contained in:
Jiiks 2018-01-11 14:40:31 +02:00
parent 71f785cdd1
commit b75177dadd
2 changed files with 7 additions and 6 deletions

7
core/dist/main.js vendored
View File

@ -12,16 +12,17 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
/**
* DEVELOPMENT VARIABLES
*/
const clientScriptPath = path.resolve(__dirname, '..', '..', 'client', 'dist');
const __DEV = {
TESTING: false,
clientScriptPath: 'G:/Github/JsSucks/BetterDiscordApp/client/dist/betterdiscord.client.js'
clientScriptPath: `${clientScriptPath}/betterdiscord.client.js`
};
const path = require('path');
const __pluginPath = path.resolve(__dirname, '..', '..', 'tests', 'plugins');
const __themePath = path.resolve(__dirname, '..', '..', 'tests', 'themes');

View File

@ -8,17 +8,17 @@
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
/**
* DEVELOPMENT VARIABLES
*/
const clientScriptPath = path.resolve(__dirname, '..', '..', 'client', 'dist');
const __DEV = {
TESTING: false,
clientScriptPath: 'G:/Github/JsSucks/BetterDiscordApp/client/dist/betterdiscord.client.js'
clientScriptPath: `${clientScriptPath}/betterdiscord.client.js`
}
const path = require('path');
const __pluginPath = path.resolve(__dirname, '..', '..', 'tests', 'plugins');
const __themePath = path.resolve(__dirname, '..', '..', 'tests', 'themes');