mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
Fix unexpected error thrown when using the embed in standalone mode (#3985)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@gitbook/embed": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix unexpected error thrown when using the embed in standalone mode
|
||||||
@@ -193,5 +193,3 @@ const precalls = (window.GitBook as GitBookStandalone | undefined)?.q ?? [];
|
|||||||
// @ts-expect-error - GitBook is not defined in the global scope
|
// @ts-expect-error - GitBook is not defined in the global scope
|
||||||
window.GitBook = GitBook;
|
window.GitBook = GitBook;
|
||||||
precalls.forEach((call) => GitBook(...call));
|
precalls.forEach((call) => GitBook(...call));
|
||||||
|
|
||||||
GitBook('configure', {});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user