Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
window.addEventListener('load', () => {
let documentId = getQueryStringParam('documentId')
window.documentPage = DocumentPage.mount({
backend,
appState,
documentId
}, window.document.body)
window.documentPage.on('loaded', () => {
window.document.title = window.documentPage.getTitle()
})
})