Skip to content

Commit

Permalink
feat: 🎸 ui issue (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
divisey committed May 9, 2024
1 parent f76a248 commit de1d401
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponent, onMounted, ref, PropType } from "vue";
import { defineComponent, onMounted, ref, PropType, onUnmounted } from "vue";
import { useDisplay, useLocale } from "vuetify";
import authorize from "../../utils/authorize";

Expand Down Expand Up @@ -67,9 +67,15 @@ export const FAuthMixinMessenger = defineComponent({
};

const handleOpenInApp = () => {
window.location.href = qrUrl.value;
if (qrUrl.value) {
window.location.href = qrUrl.value;
}
};

onUnmounted(() => {
client.value?.disconnect();
});

onMounted(() => {
client.value = authorize(
{
Expand Down

0 comments on commit de1d401

Please sign in to comment.