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)
})