mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
typo
This commit is contained in:
parent
8d01cbbc21
commit
08fadd3974
2 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ mongo_store = new MongoStore {url: process.env.NODE_DB_URI}, ->
|
|||
# HabitRPG Custom Middleware
|
||||
.use (req, res, next) ->
|
||||
model = req.getModel()
|
||||
_view = model.get('view') || {}
|
||||
_view = model.get('_view') || {}
|
||||
## Set _mobileDevice to true or false so view can exclude portions from mobile device
|
||||
_view.mobileDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(req.header 'User-Agent')
|
||||
_view.nodeEnv = process.env.NODE_ENV
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@
|
|||
<!-- Footer -->
|
||||
<footer class=footer>
|
||||
<div class=container>
|
||||
{#unless _mobileDevice}
|
||||
{#unless _view.mobileDevice}
|
||||
<div class='pull-right'>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in a new issue