mirror of
https://github.com/nimbold/Firelink.git
synced 2026-09-09 09:16:57 +00:00
test(startup): isolate deferred logger IPC (#37)
- Issue #37: defer the logger state query until after the first renderer frame.\n- Keep the visible-window startup control otherwise unchanged.\n\nRefs #37.
This commit is contained in:
+4
-2
@@ -1,8 +1,10 @@
|
||||
import { initLogger } from "./utils/logger";
|
||||
|
||||
void initLogger();
|
||||
|
||||
const rootElement = document.getElementById("root");
|
||||
if (rootElement) {
|
||||
rootElement.textContent = "Firelink startup control";
|
||||
}
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
void initLogger();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user