git ssb

2+

mixmix / ticktack



Commit 9bf270081d898c0ec622f792b7f8e6e340f7a102

app/html/app should return an html element

Dominic Tarr committed on 8/16/2017, 4:56:17 AM
Parent: 7458998a2a59e0edaf11b6ce83867a72f96577d6

Files changed

app/html/app.jschanged
main.jschanged
app/html/app.jsView
@@ -15,11 +15,8 @@
1515 })
1616
1717 exports.needs = nest({
1818 'app.async.catchLinkClick': 'first',
19-// 'history.sync.push': 'first',
20-// 'history.obs.location': 'first',
21-// 'history.obs.store': 'first',
2219 'router.sync.router': 'first',
2320 'styles.css': 'first'
2421 })
2522
@@ -46,12 +43,14 @@
4643 if (isExternal) return openExternal(link)
4744 nav.push(link)
4845 })
4946 nav.push({page: 'home'})
50- document.body.appendChild(nav)
47+ return nav
5148 },
5249 'history.sync.push': (location) => nav.push(location),
5350 'history.sync.back': () => nav.back(),
5451 'history.obs.location': () => nav.history,
5552 })
5653 }
5754
55+
56+
main.jsView
@@ -28,13 +28,10 @@
2828 )
2929
3030 const api = entry(sockets, nest('app.html.app', 'first'))
3131
32-const app = api.app.html.app()
32+document.body.appendChild(api.app.html.app())
3333
34-// TODO (mix) : once app has swapping pages, attach the app to the page here
35-// document.body.appendChild(app)
3634
3735
3836
3937
40-

Built with git-ssb-web