Ledger warning (#709)

* Ledger HTTPS warning.

* Missed colon.
This commit is contained in:
William O'Beirne 2018-01-02 01:45:21 -05:00 committed by Daniel Ternyak
parent 3733adfd84
commit d1b8f4b65a
1 changed files with 11 additions and 0 deletions

View File

@ -43,6 +43,17 @@ export class LedgerNanoSDecrypt extends Component<Props, State> {
const { dPath, publicKey, chainCode, error, isLoading, showTip } = this.state;
const showErr = error ? 'is-showing' : '';
if (window.location.protocol !== 'https:') {
return (
<div className="LedgerDecrypt">
<div className="alert alert-danger">
Unlocking a Ledger hardware wallet is only possible on pages served over HTTPS. You can
unlock your wallet at <a href="https://myetherwallet.com">MyEtherWallet.com</a>
</div>
</div>
);
}
return (
<div className="LedgerDecrypt">
{showTip && (