Skip to content

Commit

Permalink
lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 10, 2024
1 parent 4cf3b48 commit 25b7947
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions apps/heatmap/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ function initCore() {

$CAMIC.loadImg(async function(e) {
Loading.open(document.body, `Loading Data ...`);
$CAMIC.viewer.addHandler('open-failed', function(e){
console.error(e.message, e)
$CAMIC.viewer.addHandler('open-failed', function(e) {
console.error(e.message, e);
redirect($D.pages.table, e.message, 5);
})
});
// image loaded
if (e.hasError) {
$UI.message.addError(e.message);
Expand Down
6 changes: 3 additions & 3 deletions apps/labeling/labeling.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ function initCore() {
defaultText: `Slide: ${$D.params.data.name}`,
});
}
$CAMIC.viewer.addHandler('open-failed', function(e){
console.error(e.message, e)
$CAMIC.viewer.addHandler('open-failed', function(e) {
console.error(e.message, e);
redirect($D.pages.table, e.message, 5);
})
});
});

$CAMIC.viewer.addHandler('open', function() {
Expand Down
6 changes: 3 additions & 3 deletions apps/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ function initCore() {
} else {
$D.params.data = e;
}
$CAMIC.viewer.addHandler('open-failed', function(e){
console.error(e.message, e)
$CAMIC.viewer.addHandler('open-failed', function(e) {
console.error(e.message, e);
redirect($D.pages.table, e.message, 5);
})
});
});

$CAMIC.store.getSlide($D.params.slideId).then((response) => {
Expand Down
6 changes: 3 additions & 3 deletions apps/segment/segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,10 @@ function initCore() {
} else {
$D.params.data = e;
}
$CAMIC.viewer.addHandler('open-failed', function(e){
console.error(e.message, e)
$CAMIC.viewer.addHandler('open-failed', function(e) {
console.error(e.message, e);
redirect($D.pages.table, e.message, 5);
})
});
});

$CAMIC.viewer.addOnceHandler('open', function(e) {
Expand Down
6 changes: 3 additions & 3 deletions apps/viewer/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ function initCore() {
}

$CAMIC.loadImg(function(e) {
$CAMIC.viewer.addHandler('open-failed', function(e){
console.error(e.message, e)
$CAMIC.viewer.addHandler('open-failed', function(e) {
console.error(e.message, e);
redirect($D.pages.table, e.message, 5);
})
});
// image loaded
if (e.hasError) {
// if this is a retry, assume normal behavior (one retry per slide)
Expand Down

0 comments on commit 25b7947

Please sign in to comment.