Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
helamanl0424 authored Apr 5, 2024
1 parent 420b85f commit 7ba9667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function addPhotoAction() {
addPhoto(url, filename).then(() => {
input.remove(); // Remove the input field
addPhotoBtn.style.display = ''; // Show the button again
fetchAndDisplayItems(getCurrentPath()); // Refresh the contents of the folder
fetchAndDisplayItems(getCurrentPath(), true); // Refresh the contents of the folder
})
}
};
Expand Down Expand Up @@ -895,7 +895,7 @@ async function setUpMyPhotosFolder() {
fetchAndDisplayItems(photosFolderURL);
} catch (error) {
console.error("Failed to setup photos' folder:", error);
alert("Failed to setup photos. Please check the console log.");
alert("Failed to setup photos' folder. Please check the console log.");
}
}

Expand Down

0 comments on commit 7ba9667

Please sign in to comment.