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) {
|
document.getElementById('tweetURL').addEventListener('change', function(e) {
|
||||||
|
if (e.target.value.trim() != "") {
|
||||||
let parts = e.target.value.split("/");
|
let parts = e.target.value.split("/");
|
||||||
let tweetID = parts[parts.length-1];
|
let tweetID = parts[parts.length-1];
|
||||||
loadTweet(tweetID);
|
loadTweet(tweetID);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('imageTagExample').addEventListener('click', function(e) {
|
document.getElementById('imageTagExample').addEventListener('click', function(e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user