Resolve client script path instead of hardcoding
This commit is contained in:
parent
71f785cdd1
commit
b75177dadd
|
@ -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');
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue