Fix: innerHTML -> textContent

This commit is contained in:
eight 2017-09-13 01:39:34 +08:00
parent 6165487db6
commit 93fe23f2a6

View File

@ -177,7 +177,7 @@ function buildWarning(err) {
function initErrorPage(err, source) {
return pendingResource.then(() => {
document.body.innerHTML = '';
document.body.textContent = '';
[
buildWarning(err),
$element({className: 'code'})