From d1b8f4b65acc5275c1bf0f8e8155fe1b2a6e3b4d Mon Sep 17 00:00:00 2001 From: William O'Beirne Date: Tue, 2 Jan 2018 01:45:21 -0500 Subject: [PATCH] Ledger warning (#709) * Ledger HTTPS warning. * Missed colon. --- .../WalletDecrypt/components/LedgerNano.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/components/WalletDecrypt/components/LedgerNano.tsx b/common/components/WalletDecrypt/components/LedgerNano.tsx index a372f38d..ef993076 100644 --- a/common/components/WalletDecrypt/components/LedgerNano.tsx +++ b/common/components/WalletDecrypt/components/LedgerNano.tsx @@ -43,6 +43,17 @@ export class LedgerNanoSDecrypt extends Component { const { dPath, publicKey, chainCode, error, isLoading, showTip } = this.state; const showErr = error ? 'is-showing' : ''; + if (window.location.protocol !== 'https:') { + return ( +
+
+ Unlocking a Ledger hardware wallet is only possible on pages served over HTTPS. You can + unlock your wallet at MyEtherWallet.com +
+
+ ); + } + return (
{showTip && (