From c8a6b0088c7014a7823b1059b04b4aaf82f41b06 Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 22 Oct 2024 11:12:32 +0200 Subject: [PATCH] Wait for (re)wakening before dispatching messages (fixes occasional blank UI on Android). --- src/bg/main.js | 2 +- src/nscl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bg/main.js b/src/bg/main.js index fbcf0d2..c5c44f2 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -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 { diff --git a/src/nscl b/src/nscl index 6190ad1..3ba8d9a 160000 --- a/src/nscl +++ b/src/nscl @@ -1 +1 @@ -Subproject commit 6190ad1d4288385aa1062af35fd62807c2f6ab2d +Subproject commit 3ba8d9a4cb4c57abb2611343cc8641882f5715c2