mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 17:06:43 -06:00
fc56b12690
* accountsストアはindexedDBで保持するように
* fix lint
* fix indexeddb available detection
* remove debugging code
* fix lint
* resolve ba756204b7 (diff-f565878e8202f0037b830c780b7c0932dc1bb5fd3d05ede14d72d10efbc3740c)
Firefoxでの動作を改善
* fix lint
* fix lint
* add changelog
7 lines
281 B
TypeScript
7 lines
281 B
TypeScript
import { get } from '@client/scripts/idb-proxy';
|
|
|
|
export async function getAccountFromId(id: string) {
|
|
const accounts = await get('accounts') as { token: string; id: string; }[];
|
|
if (!accounts) console.log('Accounts are not recorded');
|
|
return accounts.find(e => e.id === id);
|
|
}
|