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(() => {
|
window.textsecure.protobuf.onLoad(() => {
|
||||||
senderCertificateService.initialize({
|
window.storage.onready(() => {
|
||||||
WebAPI: window.WebAPI,
|
senderCertificateService.initialize({
|
||||||
navigator,
|
WebAPI: window.WebAPI,
|
||||||
onlineEventTarget: window,
|
navigator,
|
||||||
SenderCertificate: window.textsecure.protobuf.SenderCertificate,
|
onlineEventTarget: window,
|
||||||
storage: window.storage,
|
SenderCertificate: window.textsecure.protobuf.SenderCertificate,
|
||||||
|
storage: window.storage,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue