addTextContents: function (pageNr, callback) {
var t = $("#page_" + pageNr + ' .texts');
- if (this.fluidbook.support.chromeBased) {
+ if (this.fluidbook.support.svgtocanvas) {
$(t).html('<canvas data-page="' + pageNr + '" class="p"></canvas><canvas data-page="' + pageNr + '" class="z"></canvas>');
this.renderTextsCanvas();
} else {
},
renderTextsCanvas: function () {
- if (!this.fluidbook.support.chromeBased) {
+ if (!this.fluidbook.support.svgtocanvas) {
return;
}
var $this = this;
this.iOS = Modernizr.ios;
this.edge = Modernizr.edge;
this.chromeBased = Modernizr.chrome || this.edge;
+ this.svgtocanvas = this.IE === 0;
+
// If in node-webkit or if the index.html fluidbook is locally open in a browser
this.offline = (typeof process !== "undefined" && process.versions['node-webkit']) || window.location.toString().indexOf("file://") == 0;