this.iOS = Modernizr.ios;
this.edge = Modernizr.edge;
this.chromeBased = Modernizr.chrome || this.edge;
- this.gpuInfos = this.getGPUInfos();
- this.svgtocanvas = this.fluidbook.settings.svgToCanvas == 1 && this.IE === 0 && !(this.safari && this.macOs) && this.getGPUInfos().vendor.indexOf('intel') === -1 && this.getGPUInfos().vendor.indexOf('renderer') === -1;
+
+ try {
+ this.gpuInfos = this.getGPUInfos();
+ this.svgtocanvas = this.fluidbook.settings.svgToCanvas == 1 && this.IE === 0 && !(this.safari && this.macOs) && this.getGPUInfos().vendor.indexOf('intel') === -1 && this.getGPUInfos().vendor.indexOf('renderer') === -1;
+ } catch (e) {
+ this.svgtocanvas = false;
+ }
+
this.pdftocanvas = window.pdfjsLib !== undefined && this.fluidbook.settings.svgToCanvas == 2;
// If in node-webkit or if the index.html fluidbook is locally open in a browser