fix a bug

This commit is contained in:
xing 2020-04-02 22:04:49 +08:00
parent 36f3a0d18e
commit 060c5ec265

View File

@ -462,7 +462,7 @@
window.open(url, '_blank'); window.open(url, '_blank');
} }
if ((startX - endX) > 100 && Math.abs(endY - startY) <= 100) { if ((startX - endX) > 100 && Math.abs(endY - startY) <= 100) {
location.href = document.querySelector('li.tl_shadow>a[data-thread-type="0"]').dataset.url; location.href = li.querySelector('li.tl_shadow>a[data-thread-type="0"]').dataset.url;
//window.open(url,'self') //window.open(url,'self')
} }
}) })