mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Fixes #134
This commit is contained in:
parent
35ba4087fa
commit
43fde41e29
1 changed files with 5 additions and 1 deletions
|
@ -81,7 +81,11 @@ function setupImageUpload() {
|
|||
disableFetch();
|
||||
|
||||
scrapeUrl(remoteUrl.value).then(data => {
|
||||
if (data.errors && data.errors.length > 0) {
|
||||
if (data == null) {
|
||||
scraperError.innerText = "No image found at that address.";
|
||||
showError();
|
||||
return;
|
||||
} else if (data.errors && data.errors.length > 0) {
|
||||
scraperError.innerText = data.errors.join(' ');
|
||||
showError();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue