Use new mount() functionality in example (#630)

No more mucking around with `module.parent` ✌️
This commit is contained in:
Renée Kooi
2018-02-23 19:39:28 +01:00
committed by GitHub
parent a685d4ee36
commit 6bee7086bc
+1 -2
View File
@@ -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')