diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 75b4a48084..09ada87dde 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -59,8 +59,10 @@ class CompileTab { const self = this self.compiler.event.register('compilationStarted', () => { - self._view.errorContainer.innerHTML = '' - self._view.errorContainerHead.innerHTML = '' + if (self._view.errorContainer) { + self._view.errorContainer.innerHTML = '' + self._view.errorContainerHead.innerHTML = '' + } }) self.compiler.event.register('compilationFinished', (success, data, source) => { if (success) {