-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathtextToQrCode.js
More file actions
28 lines (26 loc) · 664 Bytes
/
textToQrCode.js
File metadata and controls
28 lines (26 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export default {
icon: '<i class="fa-solid fa-qrcode fa-lg"></i>',
name: {
en: "Text to QRCode",
vi: "Chữ sang QRCode",
},
description: {
en: "Convert text/url to QRCode",
vi: "Chuyển chữ/link sang QRCode",
},
popupScript: {
onClick: async () => {
const { getCurrentTab, popupCenter } = await import("./helpers/utils.js");
const tab = await getCurrentTab();
let text = prompt("Nhập text/url: ", tab.url);
if (text) {
popupCenter({
url: "/scripts/textToQrCode.html#" + text,
title: "Text to QRCode",
w: 400,
h: 500,
});
}
},
},
};