Fix enter.vue firebase not loaded
This commit is contained in:
parent
dfe810fff4
commit
f745fef6c2
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import Vue from "vue"
|
||||
import { initializeFirebase } from "~/helpers/fb"
|
||||
import { isSignInWithEmailLink, signInWithEmailLink } from "~/helpers/fb/auth"
|
||||
|
||||
export default Vue.extend({
|
||||
|
|
@ -17,6 +18,9 @@ export default Vue.extend({
|
|||
error: null,
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
initializeFirebase()
|
||||
},
|
||||
async mounted() {
|
||||
if (isSignInWithEmailLink(window.location.href)) {
|
||||
this.signingInWithEmail = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue