Viewer's type error

Accessing “type” property of any viewer throws exception.

let grid =, 100)).grid;
let type = null;
try{type = grid.type;}
let msg = e.message;

Thanks for reporting the issue - we’ve just fixed it. Also, we’ve made one breaking change - Viewer.getOptions() now returns a JS object instead of string. It was our intention from the start and we even documented it this way.