Skip to content

Commit 48a8943

Browse files
committed
Fix double click on other-ip
1 parent 008c881 commit 48a8943

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ip.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,8 @@ <h3>ip.wtf API</h3>
853853

854854
for (let el of [...document.querySelectorAll(".dblselect")]) {
855855
el.addEventListener("dblclick", e => {
856-
window.getSelection().selectAllChildren(el);
856+
let bel = el.querySelector("b");
857+
window.getSelection().selectAllChildren(bel ? bel : el);
857858
e.preventDefault();
858859
});
859860
}

0 commit comments

Comments
 (0)