Commit 48ae2f43 authored by Bertrand Presles's avatar Bertrand Presles

Disabled barcode for OSX

parent d86b1bea
......@@ -170,4 +170,4 @@
"osx"
]
}
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -94,8 +94,8 @@ angular.module("cesium.config", [])
}
},
"version": "1.4.12",
"build": "2019-11-05T15:23:40.710Z",
"build": "2019-11-08T20:56:38.011Z",
"newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
})
;
;
\ No newline at end of file
......@@ -206,6 +206,10 @@ angular.module('cesium.device.services', ['cesium.utils.services', 'cesium.setti
return !!navigator.userAgent.match(/iPhone | iPad | iPod/i) || ionic.Platform.isIOS();
};
exports.isOSX = function() {
return !!navigator.userAgent.match(/Macintosh/i) || ionic.Platform.is("osx");
};
exports.isDesktop = function() {
if (!angular.isDefined(cache.isDesktop)) {
try {
......@@ -237,7 +241,7 @@ angular.module('cesium.device.services', ['cesium.utils.services', 'cesium.setti
if (exports.enable){
exports.camera.enable = !!navigator.camera;
exports.keyboard.enable = cordova && cordova.plugins && !!cordova.plugins.Keyboard;
exports.barcode.enable = cordova && cordova.plugins && !!cordova.plugins.barcodeScanner;
exports.barcode.enable = cordova && cordova.plugins && !!cordova.plugins.barcodeScanner && !this.isOSX();
exports.clipboard.enable = cordova && cordova.plugins && !!cordova.plugins.clipboard;
if (exports.keyboard.enable) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment