Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Nov 29, 2024
1 parent 98bf0de commit 7f214b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13401,7 +13401,9 @@

function getSelectStr() {
let selStr = extSelectionText || picker.getPickerStr() || window.getSelection().toString();
extSelectionText = "";
setTimeout(() => {
extSelectionText = "";
}, 1);
if (!selStr) {
let tar = getActiveElement(document);
if (tar && /^(TEXTAREA|INPUT)$/i.test(tar.nodeName)) {
Expand Down

0 comments on commit 7f214b8

Please sign in to comment.