mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
09ef328357
resolveEmbeddableTheme checked the non-toggeable branch before the explicit forcedTheme, so a site with the theme toggle disabled silently ignored the embed's ?theme=light/dark (SDK colorScheme) request. Reorder so an explicit override always wins, which is the only reliable way to force the scheme from a mobile webview that can't run JS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MN7HAu1vHzuFeND4UCRCBo