fix: only update image if textbox populated
This commit is contained in:
parent
651f3683d2
commit
f188873c40
@ -106,9 +106,11 @@
|
||||
}
|
||||
|
||||
document.getElementById('tweetURL').addEventListener('change', function(e) {
|
||||
let parts = e.target.value.split("/");
|
||||
let tweetID = parts[parts.length-1];
|
||||
loadTweet(tweetID);
|
||||
if (e.target.value.trim() != "") {
|
||||
let parts = e.target.value.split("/");
|
||||
let tweetID = parts[parts.length-1];
|
||||
loadTweet(tweetID);
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById('imageTagExample').addEventListener('click', function(e) {
|
||||
|
Loading…
Reference in New Issue
Block a user