From 36f3a0d18e119e503e7d68f657fb7efc7bf15bcc Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 2 Apr 2020 22:03:35 +0800 Subject: [PATCH] fix a bug --- tieba page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tieba page.js b/tieba page.js index 03f50eb..8287f9c 100644 --- a/tieba page.js +++ b/tieba page.js @@ -458,7 +458,7 @@ li.addEventListener('touchend', evt => { if ((endX - startX) > 100 && Math.abs(endY - startY) <= 100) { - let url = document.querySelector('li.tl_shadow>a[data-thread-type="0"]').dataset.url; + let url = li.querySelector('li.tl_shadow>a[data-thread-type="0"]').dataset.url; window.open(url, '_blank'); } if ((startX - endX) > 100 && Math.abs(endY - startY) <= 100) {