changes
This commit is contained in:
@@ -106,9 +106,7 @@ async function download() {
|
||||
|
||||
if (!svg) {
|
||||
console.error("QR Code SVG element not found after waiting.");
|
||||
$snackbar(isVietnamese.value ? "Không tìm thấy mã QR để tải xuống." : "QR Code not found for download.", {
|
||||
type: "is-danger",
|
||||
});
|
||||
$snackbar(isVietnamese.value ? "Không tìm thấy mã QR để tải xuống." : "QR Code not found for download.", "Error");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -135,7 +133,7 @@ async function download() {
|
||||
linkElement.click();
|
||||
|
||||
URL.revokeObjectURL(url);
|
||||
$snackbar(isVietnamese.value ? "Đã tải xuống mã QR!" : "QR Code downloaded!", { type: "is-success" });
|
||||
$snackbar(isVietnamese.value ? "Đã tải xuống mã QR!" : "QR Code downloaded!", "Error");
|
||||
};
|
||||
image.src = url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user