mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +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();
|
disableFetch();
|
||||||
|
|
||||||
scrapeUrl(remoteUrl.value).then(data => {
|
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(' ');
|
scraperError.innerText = data.errors.join(' ');
|
||||||
showError();
|
showError();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue