mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Add rage button to debug menu (#15291)
* + Rage * tinkering * remove if statement wrapper and modify error message * add test cases * more work on test cases * adding contexts to test cases * test(debug): fix up tests * fix(lint): whisepate --------- Co-authored-by: Sabe Jones <sabe@habitica.com>
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
} from '../libs/errors';
|
||||
|
||||
export default function ensureDevelopmentMode (req, res, next) {
|
||||
console.log(nconf.get('DEBUG_ENABLED'), nconf.get('BASE_URL'));
|
||||
if (nconf.get('DEBUG_ENABLED') && nconf.get('BASE_URL') !== 'https://habitica.com') {
|
||||
next();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user