mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-11 13:18:59 +09:00
test
This commit is contained in:
parent
8804f896b0
commit
cb6d38713f
@ -2,6 +2,7 @@ import { onUnmounted, Ref, ref, watch } from 'vue';
|
||||
import { $i } from './account';
|
||||
import { api } from './os';
|
||||
import { get, set } from './scripts/idb-proxy';
|
||||
import { defaultStore } from './store';
|
||||
import { stream } from './stream';
|
||||
|
||||
type StateDef = Record<string, {
|
||||
@ -95,11 +96,13 @@ export class Storage<T extends StateDef> {
|
||||
}
|
||||
}
|
||||
|
||||
private async load(): Promise<void> {
|
||||
private load(): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
if ($i) {
|
||||
// api関数と循環参照なので一応setTimeoutしておく
|
||||
setTimeout(() => {
|
||||
setTimeout(async () => {
|
||||
await defaultStore.ready;
|
||||
|
||||
api('i/registry/get-all', { scope: ['client', this.key] })
|
||||
.then(kvs => {
|
||||
const cache = {};
|
||||
|
Loading…
Reference in New Issue
Block a user