hide qrcode scanner when file://

This commit is contained in:
Mario Colque 2014-05-22 14:40:46 -03:00
commit 49b6e59286
2 changed files with 3 additions and 6 deletions

View file

@ -28,10 +28,7 @@ angular.module('copay.send').controller('SendController',
};
// Detect protocol
$scope.isHttp = function() {
var protocol = $window.location.protocol;
return (protocol.indexOf('http') === 0);
};
$scope.isHttp = ($window.location.protocol.indexOf('http') === 0);
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
window.URL = window.URL || window.webkitURL || window.mozURL || window.msURL;