diff --git a/static/js/notes2.mjs b/static/js/notes2.mjs index 0666018..9afec41 100644 --- a/static/js/notes2.mjs +++ b/static/js/notes2.mjs @@ -81,7 +81,7 @@ class Tree extends Component { }) return html`
` }//}}} diff --git a/views/pages/notes2.gotmpl b/views/pages/notes2.gotmpl index 5cc30cf..f633692 100644 --- a/views/pages/notes2.gotmpl +++ b/views/pages/notes2.gotmpl @@ -12,6 +12,9 @@ import 'preact/devtools' import { NodeStore } from 'node_store' import { Notes2 } from "/js/{{ .VERSION }}/notes2.mjs" import { API } from 'api' +import { Sync } from 'sync' + +window.Sync = Sync if (!API.hasAuthenticationToken()) { location.href = '/login'