From 6394639091de35d12a30cd37000e9acd9b2d7be0 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 19 Mar 2018 21:33:54 +0330 Subject: [PATCH] fix(nuxt-error): prevent duplicate errors also hides 404s from ssr --- lib/app/components/nuxt-error.vue | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/lib/app/components/nuxt-error.vue b/lib/app/components/nuxt-error.vue index a304f59e85..9f81c4133b 100644 --- a/lib/app/components/nuxt-error.vue +++ b/lib/app/components/nuxt-error.vue @@ -33,27 +33,6 @@ export default { ] } }, - <% if(debug) { %> - // Only on debug mode - data () { - return { - mounted: false - } - }, - mounted () { - this.mounted = true - }, - created () { - console.error(this.error) - }, - watch: { - error(newErr) { - if(newErr) { - console.error(newErr) - } - } - }, - <% } %> computed: { statusCode () { return (this.error && this.error.statusCode) || 500 @@ -79,7 +58,7 @@ export default { font-weight: 100 !important; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; - -webkit-font-smoothing: antialiased; + -webkit-font-smoothing: antialiased; position: absolute; top: 0; left: 0; @@ -93,7 +72,7 @@ export default { font-size: 1.5rem; margin-top: 15px; color: #47494E; - margin-bottom: 8px; + margin-bottom: 8px; } .__nuxt-error-page .description { color: #7F828B;