diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-02 02:15:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-02 02:15:12 +0900 |
| commit | 92d9ce8117aaf08dbf674d319cf999c945217834 (patch) | |
| tree | af53d83398e869885b0f18bff5f0b5a0075d051b /packages/client/src | |
| parent | fix (diff) | |
| download | misskey-92d9ce8117aaf08dbf674d319cf999c945217834.tar.gz misskey-92d9ce8117aaf08dbf674d319cf999c945217834.tar.bz2 misskey-92d9ce8117aaf08dbf674d319cf999c945217834.zip | |
update deps
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/init.ts | 2 | ||||
| -rw-r--r-- | packages/client/src/stream.ts | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index 66d75e70fb..131ea0cf8b 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -16,7 +16,7 @@ if (localStorage.getItem('accounts') != null) { import * as Sentry from '@sentry/browser'; import { Integrations } from '@sentry/tracing'; import { computed, createApp, watch, markRaw, version as vueVersion } from 'vue'; -import compareVersions from 'compare-versions'; +import * as compareVersions from 'compare-versions'; import widgets from '@/widgets'; import directives from '@/directives'; diff --git a/packages/client/src/stream.ts b/packages/client/src/stream.ts index 10502444b6..de918e6099 100644 --- a/packages/client/src/stream.ts +++ b/packages/client/src/stream.ts @@ -3,4 +3,8 @@ import { markRaw } from 'vue'; import { $i } from '@/account'; import { url } from '@/config'; -export const stream = markRaw(new Misskey.Stream(url, $i)); +console.log($i.token); + +export const stream = markRaw(new Misskey.Stream(url, $i ? { + token: $i.token, +} : null)); |