We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d6122b commit 1f835efCopy full SHA for 1f835ef
src/components/QRCode.vue
@@ -48,6 +48,8 @@ const isReady = ref(false);
48
49
const qrCodeDataURL = ref<string | null>(null);
50
51
+const reader = new FileReader();
52
+
53
const compute2 = async (
54
urlToEncode = "",
55
lighColor = "#ffffff",
@@ -88,7 +90,6 @@ const compute2 = async (
88
90
89
91
const data = (await qrCode.getRawData()) as Blob;
92
// The above is a blob, we need to convert it to a data URL
- const reader = new FileReader();
93
reader.readAsDataURL(data);
94
reader.onload = () => {
95
qrCodeDataURL.value = reader.result as string;
0 commit comments