This commit is contained in:
tamaina
2021-02-15 06:17:21 +09:00
parent bf1db27824
commit 1ae1385d43
6 changed files with 51 additions and 55 deletions

View File

@@ -151,15 +151,15 @@ const loginId = params.get('loginId');
if (loginId) {
const target = deleteLoginId(location.toString());
if (!$i || $i.id !== loginId) {
const account = await getAccountFromId(loginId);
if (account) {
login(account.token, target)
login(account.token, target);
}
}
history.replaceState({ misskey: 'loginId' }, '', target)
history.replaceState({ misskey: 'loginId' }, '', target);
}
//#endregion
@@ -252,7 +252,7 @@ navigator.serviceWorker.addEventListener('message', ev => {
return getAccountFromId(data.loginId).then(account => {
if (!account) return;
return login(account.token, data.url);
})
});
}
switch (data.order) {