This commit is contained in:
Zeno Kapitein
2026-04-09 09:52:05 +02:00
parent d4247d25f1
commit 210cdcaa68
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -229,7 +229,11 @@ const GitBook = (...args: StandaloneCalls) => {
}
}
getIframe();
const { frame } = getIframe();
// Always propagate configuration updates, even when color-scheme doesn't change.
frame.configure({
...frameConfiguration,
});
pushColorSchemeToFrame();
break;
}
@@ -108,7 +108,7 @@ export function EmbeddableIframeAPI(props: {
/** Subscribe to embed configuration from the parent (Zustand). */
export function useEmbeddableConfiguration<T>(
selector: (state: GitBookEmbeddableConfiguration) => T,
selector: (state: GitBookEmbeddableConfiguration) => T
): T {
return useStore(embeddableConfiguration, selector);
}