- remove debug console.log
This commit is contained in:
parent
ce4cf78dec
commit
d1c982e6b5
|
@ -1,6 +1,5 @@
|
|||
function getUrl(e) {
|
||||
var target = e.target;
|
||||
console.log(e);
|
||||
while ((target.tagName != "A" || !target.href) && target.parentNode) {
|
||||
target = target.parentNode;
|
||||
}
|
||||
|
@ -8,7 +7,6 @@ function getUrl(e) {
|
|||
if (target.href.startsWith("https://t.co")) {
|
||||
let url = '';
|
||||
e.preventDefault();
|
||||
console.log(e.target.children);
|
||||
url = e.target.textContent.replace("…","")
|
||||
if(url.startsWith("http")) {
|
||||
window.open(url, '_blank');
|
||||
|
|
Loading…
Reference in a new issue