Wait for (re)wakening before dispatching messages (fixes occasional blank UI on Android).

This commit is contained in:
hackademix 2024-10-22 11:12:32 +02:00
parent e95013c078
commit c8a6b0088c
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@
if (this.running) return; if (this.running) return;
this.running = true; this.running = true;
browser.runtime.onSyncMessage.addListener(onSyncMessage); browser.runtime.onSyncMessage.addListener(onSyncMessage);
deferWebTraffic(this.initializing = init(), deferWebTraffic(Messages.wakening = this.initializing = init(),
async () => { async () => {
Commands.install(); Commands.install();
try { try {

@ -1 +1 @@
Subproject commit 6190ad1d4288385aa1062af35fd62807c2f6ab2d Subproject commit 3ba8d9a4cb4c57abb2611343cc8641882f5715c2