mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 03:30:25 +00:00
put debugging in if in debugging environment
This commit is contained in:
parent
2be5136a2f
commit
4ac5d5e24d
2 changed files with 5 additions and 4 deletions
|
|
@ -80,8 +80,7 @@ ready (model) ->
|
|||
party.app(exports, model)
|
||||
items.app(exports, model)
|
||||
require('../server/private').app(exports, model)
|
||||
|
||||
#require('./debug').app(exports, model)
|
||||
require('./debug').app(exports, model) if model.get('_view.nodeEnv') != 'production'
|
||||
|
||||
user.on 'set', 'tasks.*.completed', (i, completed, previous, isLocal, passed) ->
|
||||
return if passed? && passed.cron # Don't do this stuff on cron
|
||||
|
|
|
|||
|
|
@ -370,10 +370,12 @@
|
|||
<!-- Footer -->
|
||||
<footer class=footer>
|
||||
<div class=container>
|
||||
<!--<div class='pull-right'>
|
||||
{#unless equal(_view.nodeEnv, 'production')}
|
||||
<div class='pull-right'>
|
||||
<button class='btn' x-bind="click:emulateNextDay">Emulate Next Day</button>
|
||||
<button class='btn' x-bind="click:cheat">Add GP & Exp</button>
|
||||
</div>-->
|
||||
</div>
|
||||
{/}
|
||||
<div>
|
||||
<ul>
|
||||
<li>Copyright © 2012 OCDevel LLC</li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue