From 9e1462955acf6cdca2f321950c505519c92cb6bc Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 10 Feb 2021 19:24:13 -0500 Subject: [PATCH] feat: add pageId to window global --- components/NotionPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index bd119bf..ac4767e 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -109,8 +109,9 @@ export const NotionPage: React.FC = ({ }) 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 }