Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Handle error.vue initializeFirebase

Andrew Bastin1fb2c359843b
diff --git a/layouts/error.vue b/layouts/error.vue
index b48488983..9d2518194 100644
--- a/layouts/error.vue
+++ b/layouts/error.vue
@@ -22,6 +22,8 @@
</template>
<script>
+import { initializeFirebase } from "~/helpers/fb"
+
export default {
props: {
error: {
@@ -37,7 +39,9 @@ export default {
},
}
},
-
+ beforeMount() {
+ initializeFirebase()
+ },
computed: {
statusCode() {
return (this.error && this.error.statusCode) || 500