Catches error

Fixed hidden error link when no css is loaded
This commit is contained in:
Ben Garrett 2019-06-07 16:32:35 +10:00
parent 729d67494f
commit 67db506fca

View File

@ -158,9 +158,13 @@
error.textContent = errMsg
error.appendChild(a)
// console output
throw new Error(
`DOSee has aborted as it is missing the above dependencies.`
)
try {
throw new Error(
`DOSee has aborted as it is missing the above dependencies.`
)
} catch (err) {
console.error(err)
}
}
})
})()