modify comment
This commit is contained in:
parent
67c627e93f
commit
caee136b6b
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in a new issue