feat: add pageId to window global

This commit is contained in:
Travis Fischer
2021-02-10 19:24:13 -05:00
parent a55e0ca398
commit 9e1462955a

View File

@@ -109,8 +109,9 @@ export const NotionPage: React.FC<types.PageProps> = ({
})
if (!config.isServer) {
// add important objects global window for easy debugging
// add important objects to the window global for easy debugging
const g = window as any
g.pageId = pageId
g.recordMap = recordMap
g.block = block
}