this.iOS = Modernizr.ios;
this.edge = Modernizr.edge;
this.chromeBased = Modernizr.chrome || this.edge;
- this.svgtocanvas = this.IE === 0 && !(this.safari && this.macOs);
- this.svgtocanvg = false && this.svgtocanvas;
+ this.svgtocanvas = this.fluidbook.settings.svgToCanvas && this.IE === 0 && !(this.safari && this.macOs);
+ this.svgtocanvg = false;// && this.svgtocanvas;
// 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;
} catch (err) {
$this.datauriallowed = false;
}
- },
- getTransitionEndEvent: function (all) {
+ }, getTransitionEndEvent: function (all) {
if (all == undefined) {
all = false;
}
return this.transitionEndEvent;
}
return "webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd transitionEnd";
- },
- hasNetwork: function () {
+ }, hasNetwork: function () {
if (navigator.onLine != undefined) {
return navigator.onLine;
} else {
return networkState() != 'none';
}
- },
- networkState: function () {
+ }, networkState: function () {
var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || {
type: 'unknown'
};
t = 'none';
}
return t;
- },
- initEvents: function () {
+ }, initEvents: function () {
var $this = this;
if (!isMobile(false)) {
return transitions[t];
}
}
- },
- checkOrientation: function () {
+ }, checkOrientation: function () {
var o = this.getOrientation();
if (o != this._orientation) {
this._orientation = o;
resize();
}
- },
- getOrientation: function () {
+ }, getOrientation: function () {
try {
if ((this.fluidbook.pad && this.fluidbook.pad.enabled) || this.fluidbook.mobilefirst.enabled) {
return 0;