From d766bd15cf8ac851058c8abf37238f1608d8c305 Mon Sep 17 00:00:00 2001 From: tycrek Date: Fri, 2 Jul 2021 14:26:53 -0600 Subject: [PATCH] added variable for frontend name --- ass.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ass.js b/ass.js index cd3f202..bea9c23 100755 --- a/ass.js +++ b/ass.js @@ -20,8 +20,9 @@ const { path, log, generateToken } = require('./utils'); const { CODE_NO_CONTENT, CODE_INTERNAL_SERVER_ERROR } = require('./MagicNumbers.json'); //#endregion -// Set up ass-x -const ASS_PREMIUM = fs.existsSync('./ass-x/package.json') ? require('./ass-x') : { enabled: false }; +// Set up premium frontend +const FRONTEND_NAME = 'ass-x'; // <-- Change this to use a custom frontend +const ASS_PREMIUM = fs.existsSync(`./${FRONTEND_NAME}/package.json`) ? require(`./${FRONTEND_NAME}`) : { enabled: false }; //#region Variables, module setup const app = express();