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 6295317d63
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;
this.running = true;
browser.runtime.onSyncMessage.addListener(onSyncMessage);
deferWebTraffic(this.initializing = init(),
deferWebTraffic(Messages.wakening = this.initializing = init(),
async () => {
Commands.install();
try {

@ -1 +1 @@
Subproject commit 6190ad1d4288385aa1062af35fd62807c2f6ab2d
Subproject commit 1850af6c627f3b96e3ffc36b195c5568a06419ae