Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Measure the caption colors again when a stylesheet loads

Fei24112cc5a148c1fd
diff --git a/app/src/preload.cjs b/app/src/preload.cjs
index 7837a72f..a4663502 100644
--- a/app/src/preload.cjs
+++ b/app/src/preload.cjs
@@ -94,5 +94,7 @@ function captionColors(mica) {
observer.observe(document.body, { attributes: true, attributeFilter: ['data-ds-dark-theme', 'style'] })
observer.observe(document.head, { childList: true, subtree: true, characterData: true })
observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-ds-theme-source', 'style'] })
+ // A stylesheet link is added before it loads; its rules apply without another mutation.
+ document.head.addEventListener('load', send, true)
send()
}