mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Revert "added support to generate qr from text selection"
This reverts commit 20df2ac753
.
This commit is contained in:
parent
7dd11b7c46
commit
b50cf4a3c7
1 changed files with 1 additions and 2 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Reference in a new issue