Revert "added support to generate qr from text selection"

This reverts commit 20df2ac753.
This commit is contained in:
satyamk 2023-06-16 23:37:05 +05:30
parent 7dd11b7c46
commit b50cf4a3c7

View file

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