diff --git a/src/excmds.ts b/src/excmds.ts index abef698e..7bf8e9cd 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -5949,8 +5949,7 @@ export async function text2qr(...args: string[]) { text = args.join(" ").trim() if (!text || text.length == 0) { - text = document.getSelection().toString().trim() - if (!text || text.length == 0) text = window.location.href + text = window.location.href } const urlEncodedText = encodeURIComponent(text) const url = new URL(browser.runtime.getURL("static/qrcode.html"))