fix(desktop): hot-reload development themes

This commit is contained in:
Bohdan Triapitsyn
2026-07-30 17:43:39 +03:00
parent ededdc14f9
commit 74e7fe0707
4 changed files with 67 additions and 1 deletions
+6
View File
@@ -125,6 +125,12 @@ const start = async (): Promise<void> => {
void start();
if (import.meta.hot) {
import.meta.hot.on('openchamber:theme-updated', (theme: unknown) => {
window.dispatchEvent(new CustomEvent('openchamber:theme-hmr', { detail: theme }));
});
}
if (import.meta.env.PROD) {
registerPwaServiceWorker();
} else {