diff options
Diffstat (limited to 'pages/login')
-rw-r--r-- | pages/login/page.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/login/page.js b/pages/login/page.js index 573c382..61156c5 100644 --- a/pages/login/page.js +++ b/pages/login/page.js @@ -5,7 +5,7 @@ async function fetchJSON(url, opts) { export function onload() { if (localStorage.getItem('token')) { - window.stores.sdlib.ws.addEventListener('open', () => { + window.stores.sdlib.wsEvents.on('greet', () => { window.stores.sdlib.loginToken(localStorage.getItem('token'), localStorage.getItem('username')); pages.goToPage('main') }) |