modify comment

This commit is contained in:
tamaina 2022-01-02 20:36:00 +09:00
parent 67c627e93f
commit caee136b6b

View File

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