Skip to content

Commit

Permalink
Removed display of built-in error message when an image fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuastegmaier committed Oct 29, 2024
1 parent 6eebbd9 commit 479c1fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions concordia/static/js/src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,13 @@ thresholdDown.addEventListener('click', function () {
let reset = document.getElementById('viewer-reset');
reset.addEventListener('click', resetImageFilterForms);

seadragonViewer.addHandler('open-failed', function (eventData) {
let message = eventData.message;
seadragonViewer.addHandler('open-failed', function () {
// We don't use the eventData or error message
// because it contains the image URL, which we don't
// want to display
displayMessage(
'error',
'Unable to display image: ' + message,
'Unable to display image',
'openseadragon-open-failed',
);
});
Expand Down

0 comments on commit 479c1fc

Please sign in to comment.