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