From 31db50e9ef29f8349615c700ca0ee415c8639c78 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 5 Nov 2018 13:56:38 +0100 Subject: [PATCH] wip #2321 @0.5 --- js/libs/fluidbook/fluidbook.3dflip.js | 2 +- js/libs/fluidbook/fluidbook.support.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/libs/fluidbook/fluidbook.3dflip.js b/js/libs/fluidbook/fluidbook.3dflip.js index e3fd989e..5e7b4116 100644 --- a/js/libs/fluidbook/fluidbook.3dflip.js +++ b/js/libs/fluidbook/fluidbook.3dflip.js @@ -70,7 +70,7 @@ Fluidbook3DFlip.prototype = { if (performanceMode === undefined || performanceMode === 'auto' || performanceMode === 'performancesTest') { this.veryLowPerf = this.fluidbook.support.IE > 0 || this.fluidbook.support.iOS; - this.lowPerf = !Modernizr.webgl || this.veryLowPerf || this.fluidbook.support.edge || this.fluidbook.support.android; + this.lowPerf = !Modernizr.webgl || this.veryLowPerf || this.fluidbook.support.edge || this.fluidbook.support.android || this.fluidbook.support.macOs; } else if (performanceMode === 'lowPerf') { this.lowPerf = true; this.veryLowPerf = false; diff --git a/js/libs/fluidbook/fluidbook.support.js b/js/libs/fluidbook/fluidbook.support.js index 2491e094..995f8203 100644 --- a/js/libs/fluidbook/fluidbook.support.js +++ b/js/libs/fluidbook/fluidbook.support.js @@ -7,6 +7,7 @@ function FluidbookSupport(fluidbook) { } catch (e) { } + this.macOs = navigator.platform.toUpperCase().indexOf('MAC') >= 0; this.android = this.fitScreenAtZero = this.userAgent.search(/android/i) > -1 || this.userAgent.search(/galaxy/i) > -1; this.android3 = this.android && this.userAgent.search(/android 3/i) > -1; this.iOS = this.userAgent.search(/ipad/i) > -1 || this.userAgent.search(/iphone/i) > -1 || this.userAgent.search(/ipod/i) > -1; -- 2.39.5