mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-21 06:04:26 +01:00
Remove function checks as they didn't help
This commit is contained in:
@@ -225,12 +225,10 @@
|
||||
<script>
|
||||
window.coinName = "@Model.Network.DisplayName.ToLowerInvariant()";
|
||||
$(function () {
|
||||
if (typeof(initCameraScanningApp) === "function") {
|
||||
initCameraScanningApp("Scan wallet QR", function(data){
|
||||
$("#WalletFileContent").val(data);
|
||||
$("#qr-import-form").submit();
|
||||
},"scanqrModal");
|
||||
}
|
||||
initCameraScanningApp("Scan wallet QR", function(data){
|
||||
$("#WalletFileContent").val(data);
|
||||
$("#qr-import-form").submit();
|
||||
},"scanqrModal");
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
||||
@@ -91,12 +91,10 @@
|
||||
|
||||
$(function (){
|
||||
initQRShow("Scan PSBT", @Json.Serialize(Model.PSBTHex), "scan-qr-modal");
|
||||
if (typeof(initCameraScanningApp) === "function") {
|
||||
initCameraScanningApp("Scan PSBT", function (data){
|
||||
$("textarea[name=PSBT]").val(data);
|
||||
$("#Decode").click();
|
||||
}, "scanModal");
|
||||
}
|
||||
initCameraScanningApp("Scan PSBT", function (data){
|
||||
$("textarea[name=PSBT]").val(data);
|
||||
$("#Decode").click();
|
||||
}, "scanModal");
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
$(function () {
|
||||
if (typeof(initCameraScanningApp) === "function") {
|
||||
initCameraScanningApp("Scan address/ payment link", function(data) {
|
||||
$("#BIP21").val(data);
|
||||
$("form").submit();
|
||||
},"scanModal");
|
||||
}
|
||||
initCameraScanningApp("Scan address/ payment link", function(data) {
|
||||
$("#BIP21").val(data);
|
||||
$("form").submit();
|
||||
},"scanModal");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user