Use new mount() functionality in example (#630)
No more mucking around with `module.parent` ✌️
This commit is contained in:
+1
-2
@@ -15,5 +15,4 @@ app.route('#active', require('./view'))
|
||||
app.route('#completed', require('./view'))
|
||||
app.route('*', require('./view'))
|
||||
|
||||
if (module.parent) module.exports = app
|
||||
else app.mount('body')
|
||||
module.exports = app.mount('body')
|
||||
|
||||
Reference in New Issue
Block a user