Fix enter.vue firebase not loaded
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from "vue"
|
import Vue from "vue"
|
||||||
|
import { initializeFirebase } from "~/helpers/fb"
|
||||||
import { isSignInWithEmailLink, signInWithEmailLink } from "~/helpers/fb/auth"
|
import { isSignInWithEmailLink, signInWithEmailLink } from "~/helpers/fb/auth"
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
@@ -17,6 +18,9 @@ export default Vue.extend({
|
|||||||
error: null,
|
error: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
beforeMount() {
|
||||||
|
initializeFirebase()
|
||||||
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
if (isSignInWithEmailLink(window.location.href)) {
|
if (isSignInWithEmailLink(window.location.href)) {
|
||||||
this.signingInWithEmail = true
|
this.signingInWithEmail = true
|
||||||
|
|||||||
Reference in New Issue
Block a user