hide qrcode scanner when file://
This commit is contained in:
parent
41dadab915
commit
49b6e59286
2 changed files with 3 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue