mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
feat(debug): debug buttons for NODE_ENV==test too
This commit is contained in:
parent
7ec679d11a
commit
3136b4cc2c
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@
|
|||
/**
|
||||
* Debug functions. Note that the server route for gems is only available if process.env.DEBUG=true
|
||||
*/
|
||||
if (window.env.NODE_ENV === 'development') {
|
||||
if (_.contains(['development','test'],window.env.NODE_ENV)) {
|
||||
$scope.addMissedDay = function(){
|
||||
if (!confirm("Are you sure you want to reset the day?")) return;
|
||||
var dayBefore = moment(User.user.lastCron).subtract('days', 1).toDate();
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ footer.footer(ng-controller='FooterCtrl')
|
|||
tr
|
||||
td
|
||||
a.addthis_button_google_plusone(g:plusone:size='medium')
|
||||
else if(env.NODE_ENV === 'development' && !env.isStaticPage)
|
||||
else if (env.NODE_ENV==='development' || env.NODE_ENV==='test') && !env.isStaticPage
|
||||
h4 Debug
|
||||
.btn-group-vertical
|
||||
a.btn.btn-default(ng-click='addMissedDay()') +1 Missed Day
|
||||
|
|
|
|||
Loading…
Reference in a new issue