Ensure storage is ready before starting sender certificate service
This commit is contained in:
parent
1ca121aef5
commit
2ee5f57516
1 changed files with 8 additions and 6 deletions
|
@ -31,12 +31,14 @@ export async function startApp(): Promise<void> {
|
|||
}
|
||||
|
||||
window.textsecure.protobuf.onLoad(() => {
|
||||
senderCertificateService.initialize({
|
||||
WebAPI: window.WebAPI,
|
||||
navigator,
|
||||
onlineEventTarget: window,
|
||||
SenderCertificate: window.textsecure.protobuf.SenderCertificate,
|
||||
storage: window.storage,
|
||||
window.storage.onready(() => {
|
||||
senderCertificateService.initialize({
|
||||
WebAPI: window.WebAPI,
|
||||
navigator,
|
||||
onlineEventTarget: window,
|
||||
SenderCertificate: window.textsecure.protobuf.SenderCertificate,
|
||||
storage: window.storage,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue