Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirador does not check whether the given CanvasID is present the manifest #4

Open
ublrama opened this issue Sep 18, 2020 · 0 comments

Comments

@ublrama
Copy link

ublrama commented Sep 18, 2020

When setting a the variable "canvasID" in window objects, mirador opens the manifest on the selected canvas. Though if a canvas is set that is not present in the manifest an error below occurs. Ideally the manifest should just open on the first canvas, or prompt the user that the canvas was not found in the manifest

imageView.js:705 Uncaught TypeError: Cannot read property 'getBounds' of undefined at $.ImageView.initialiseImageCanvas (imageView.js:705) at $.ImageView.init (imageView.js:91) at new $.ImageView (imageView.js:30) at $.Window.toggleImageView (window.js:767) at $.Window.init (window.js:235) at new $.Window (window.js:60) at $.Workspace.addWindow (workspace.js:516) at Object.<anonymous> (workspace.js:79) at Object.dispatch (jquery.min.js:2) at Object.y.handle (jquery.min.js:2)

@anarchivist anarchivist transferred this issue from ProjectMirador/mirador-2-wiki Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant