diff --git a/_i18n/pt/_posts/2017-02-01-copaypt.md b/_i18n/pt/_posts/2017-02-01-copaypt.md index fcbe7ba..6f531f7 100644 --- a/_i18n/pt/_posts/2017-02-01-copaypt.md +++ b/_i18n/pt/_posts/2017-02-01-copaypt.md @@ -1,7 +1,7 @@ --- author: tungfa layout: post -image: CoPayWalletcopy.jpg +image: title: "Copay-Dash Wallet (Testnet só / RC 0.1)" --- Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay. diff --git a/src/js/get-dash.js b/src/js/get-dash.js index 82e5e58..cce834f 100644 --- a/src/js/get-dash.js +++ b/src/js/get-dash.js @@ -11,6 +11,11 @@ ; $(document).ready(function () { + _ = window._ || null, + walletsCollectionByOs = window.walletsCollectionByOs || undefined, + platform = window.platform || undefined + ; + if (typeof(walletsCollectionByOs) !== 'undefined' && walletsCollectionByOs) { initDownloadButton(); } @@ -82,14 +87,15 @@ function initDownloadButton() { var _downloadButton = $('#download-detected-platform-button'), _detectedWallet = getBestWalletMatch(), - _notDetectedMessage = $('#platform-not-detected') + _notDetectedMessage = $('#platform-not-detected'), + _platform = platform ; if (_downloadButton && _downloadButton.length > 0) { - if (_detectedWallet && platform) { + if (_detectedWallet && _platform) { _downloadButton.html(_detectedWallet.links[0].label + ': ' + _detectedWallet.name) .attr({ - title: platform.os.toString() + title: _platform.os.toString() }) .data('detectedWallet',_detectedWallet) .click(onDownloadClick)