modify comment

This commit is contained in:
tamaina 2022-01-02 20:36:00 +09:00
parent 67c627e93f
commit caee136b6b
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class Storage<T extends StateDef> {
private async load(): Promise<void> {
return new Promise((resolve, reject) => {
if ($i) {
// なぜかsetTimeoutしないとapi関数内でエラーになる(おそらく循環参照してることに原因がありそう)
// api関数と循環参照なので一応setTimeoutしておく
setTimeout(() => {
api('i/registry/get-all', { scope: ['client', this.key] })
.then(kvs => {