Skip to content

Commit

Permalink
Fixed bug with loader remaining after image is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronge-2020 committed Jan 10, 2024
1 parent 90c0df5 commit a878771
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 621 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ <h2>Interactive Core Editing</h2>

<img id="originalImage" src="#" alt="Original Tissue" style="display: none;">

<canvas id="segmentationResultsCanvas" alt="Processed Tissue"></canvas>
<canvas id="segmentationResultsCanvas" alt="Processed Tissue" height="0px"></canvas>

<div id="loadingSpinner" style="display: none;">
<div class="spinner"></div>
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ const handleImageInputChange = async (e, processCallback) => {
alert(
"Image dimensions are too large. Please select an image that is less than 1024 x 1024."
);
document.getElementById("loadingSpinner").style.display = "none";

return;
}

Expand Down
Loading

0 comments on commit a878771

Please sign in to comment.