Skip to content

Commit

Permalink
test open failed event
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 10, 2024
1 parent ec883a9 commit 1daf7a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/viewer/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ function initCore() {
}

$CAMIC.loadImg(function(e) {
$CAMIC.viewer.addHandler('open-failed', function(e){

Check failure on line 198 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing space before opening brace

Check failure on line 198 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing space before opening brace
console.error(e.message)

Check failure on line 199 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing semicolon

Check failure on line 199 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing semicolon
alert("failed!")

Check failure on line 200 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Strings must use singlequote

Check failure on line 200 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing semicolon

Check failure on line 200 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Strings must use singlequote

Check failure on line 200 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing semicolon
})

Check failure on line 201 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing semicolon

Check failure on line 201 in apps/viewer/init.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing semicolon
// image loaded
if (e.hasError) {
// if this is a retry, assume normal behavior (one retry per slide)
Expand Down

0 comments on commit 1daf7a0

Please sign in to comment.