From b4b471fab6b98cbeb78da145a560ca548aa49e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Wed, 11 Feb 2026 15:15:00 +0100 Subject: [PATCH] Fix unexpected error thrown when using the embed in standalone mode (#3985) --- .changeset/giant-views-move.md | 5 +++++ packages/embed/src/standalone/index.ts | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changeset/giant-views-move.md 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', {});