Skip to content

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

@ublrama

Description

@ublrama

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions