mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-18 15:10:17 +00:00
feat: add pageId to window global
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user