summaryrefslogtreecommitdiff
path: root/src/client/mios.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mios.ts')
-rw-r--r--src/client/mios.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/mios.ts b/src/client/mios.ts
index c2ba8ac5cd..aa2b202abd 100644
--- a/src/client/mios.ts
+++ b/src/client/mios.ts
@@ -123,7 +123,12 @@ export default class MiOS extends EventEmitter {
});
} else {
// Get token from localStorage
- const i = localStorage.getItem('i');
+ let i = localStorage.getItem('i');
+
+ // 連携ログインの場合用にCookieを参照する
+ if (i == null || i === 'null') {
+ i = (document.cookie.match(/igi=(\w+)/) || [null, null])[1];
+ }
fetchme(i, me => {
if (me) {