From 66d3da8ac9319d685a7ae8aebe9fbd6f659bcb73 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Tue, 26 Jan 2021 09:40:31 +0100 Subject: [PATCH] Remove function checks as they didn't help --- BTCPayServer/Views/Stores/AddDerivationScheme.cshtml | 10 ++++------ BTCPayServer/Views/Wallets/WalletPSBT.cshtml | 10 ++++------ .../wwwroot/js/wallet/wallet-camera-scanner.js | 10 ++++------ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/BTCPayServer/Views/Stores/AddDerivationScheme.cshtml b/BTCPayServer/Views/Stores/AddDerivationScheme.cshtml index d08d076c8..06ec4a313 100644 --- a/BTCPayServer/Views/Stores/AddDerivationScheme.cshtml +++ b/BTCPayServer/Views/Stores/AddDerivationScheme.cshtml @@ -225,12 +225,10 @@ } diff --git a/BTCPayServer/Views/Wallets/WalletPSBT.cshtml b/BTCPayServer/Views/Wallets/WalletPSBT.cshtml index a3797a31d..ee3f28567 100644 --- a/BTCPayServer/Views/Wallets/WalletPSBT.cshtml +++ b/BTCPayServer/Views/Wallets/WalletPSBT.cshtml @@ -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"); }); } diff --git a/BTCPayServer/wwwroot/js/wallet/wallet-camera-scanner.js b/BTCPayServer/wwwroot/js/wallet/wallet-camera-scanner.js index 06f42be1e..07a9eeb1d 100644 --- a/BTCPayServer/wwwroot/js/wallet/wallet-camera-scanner.js +++ b/BTCPayServer/wwwroot/js/wallet/wallet-camera-scanner.js @@ -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"); });