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', () => {
Dashboard.mount({
backend,
resolveEditorURL: function(type, documentId) {
let editorURL
if (type === 'document') {
editorURL = "document.html"
} else {
editorURL = "sheet.html"
}
editorURL += '?documentId='+encodeURIComponent(documentId)
return editorURL
}
}, window.document.body)
})
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()
})
})
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()
})
})