mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-02-09 00:21:51 +01:00
another few extra qrcode tweaks
This commit is contained in:
parent
408f3ae68a
commit
b2805e135d
@ -430,19 +430,19 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#videoSource").unbind("change").change(function(){
|
||||||
|
scannerStart()
|
||||||
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$("#videoSource").addClass("hidden");
|
$("#videoSource").addClass("hidden");
|
||||||
}
|
}
|
||||||
|
scannerStart();
|
||||||
$("#videoSource").unbind("change").change(function(){
|
|
||||||
videoStart()
|
|
||||||
});
|
|
||||||
|
|
||||||
videoStart();
|
|
||||||
$("#qrcode-scanner-callback-to").html($(this).attr('forward-result'));
|
$("#qrcode-scanner-callback-to").html($(this).attr('forward-result'));
|
||||||
});
|
});
|
||||||
|
|
||||||
function videoStart(){
|
function scannerStart(){
|
||||||
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || false;
|
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || false;
|
||||||
if(navigator.getUserMedia){
|
if(navigator.getUserMedia){
|
||||||
if (!!window.stream) {
|
if (!!window.stream) {
|
||||||
|
Loading…
Reference in New Issue
Block a user