diff --git a/.changeset/giant-views-move.md b/.changeset/giant-views-move.md new file mode 100644 index 000000000..c6da91400 --- /dev/null +++ b/.changeset/giant-views-move.md @@ -0,0 +1,5 @@ +--- +"@gitbook/embed": patch +--- + +Fix unexpected error thrown when using the embed in standalone mode diff --git a/packages/embed/src/standalone/index.ts b/packages/embed/src/standalone/index.ts index 754ecb3cd..5cc22e82e 100644 --- a/packages/embed/src/standalone/index.ts +++ b/packages/embed/src/standalone/index.ts @@ -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', {});