diff --git a/indexedDb/init.go b/indexedDb/init.go index d21564a2ba2cb26a75521437302c75c9addbf441..632ad0ee736ceb95327212f8af199a5df37c112d 100644 --- a/indexedDb/init.go +++ b/indexedDb/init.go @@ -91,6 +91,9 @@ func newWASMModel(databaseName string, cb MessageReceivedCallback) ( return nil, err } + // FIXME: The below is a hack that for some reason prevents moving on with + // uninitialized database despite the previous call to Await. + // It would be idea to find a different solution. // Close and open again to ensure the state is finalized err = db.Close() if err != nil {