improve selection logic

This commit is contained in:
SethBurkart123
2024-05-06 11:34:54 +10:00
parent be1679007e
commit 23e6eac16c
7 changed files with 34 additions and 12 deletions
+6
View File
@@ -0,0 +1,6 @@
export default function sendThemeUpdate() {
const iframe = document.getElementById('ExtensionIframe') as HTMLIFrameElement
if (iframe) {
iframe.contentWindow?.postMessage({ type: 'themeChanged' }, '*');
}
}