Fix unexpected error thrown when using the embed in standalone mode (#3985)

This commit is contained in:
Greg Bergé
2026-02-11 15:15:00 +01:00
committed by GitHub
parent 17b32994f6
commit b4b471fab6
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@gitbook/embed": patch
---
Fix unexpected error thrown when using the embed in standalone mode
-2
View File
@@ -193,5 +193,3 @@ const precalls = (window.GitBook as GitBookStandalone | undefined)?.q ?? [];
// @ts-expect-error - GitBook is not defined in the global scope
window.GitBook = GitBook;
precalls.forEach((call) => GitBook(...call));
GitBook('configure', {});