mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 23:36:08 +00:00
removes image from localized blog post so that build will pass.
-- also javascript cleanup in platform detection and down button init.
This commit is contained in:
parent
9bb2ff7536
commit
34737b992f
2 changed files with 10 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
author: tungfa
|
author: tungfa
|
||||||
layout: post
|
layout: post
|
||||||
image: CoPayWalletcopy.jpg
|
image:
|
||||||
title: "Copay-Dash Wallet (Testnet só / RC 0.1)"
|
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.
|
Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay.
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
_ = window._ || null,
|
||||||
|
walletsCollectionByOs = window.walletsCollectionByOs || undefined,
|
||||||
|
platform = window.platform || undefined
|
||||||
|
;
|
||||||
|
|
||||||
if (typeof(walletsCollectionByOs) !== 'undefined' && walletsCollectionByOs) {
|
if (typeof(walletsCollectionByOs) !== 'undefined' && walletsCollectionByOs) {
|
||||||
initDownloadButton();
|
initDownloadButton();
|
||||||
}
|
}
|
||||||
|
@ -82,14 +87,15 @@
|
||||||
function initDownloadButton() {
|
function initDownloadButton() {
|
||||||
var _downloadButton = $('#download-detected-platform-button'),
|
var _downloadButton = $('#download-detected-platform-button'),
|
||||||
_detectedWallet = getBestWalletMatch(),
|
_detectedWallet = getBestWalletMatch(),
|
||||||
_notDetectedMessage = $('#platform-not-detected')
|
_notDetectedMessage = $('#platform-not-detected'),
|
||||||
|
_platform = platform
|
||||||
;
|
;
|
||||||
|
|
||||||
if (_downloadButton && _downloadButton.length > 0) {
|
if (_downloadButton && _downloadButton.length > 0) {
|
||||||
if (_detectedWallet && platform) {
|
if (_detectedWallet && _platform) {
|
||||||
_downloadButton.html(_detectedWallet.links[0].label + ': ' + _detectedWallet.name)
|
_downloadButton.html(_detectedWallet.links[0].label + ': ' + _detectedWallet.name)
|
||||||
.attr({
|
.attr({
|
||||||
title: platform.os.toString()
|
title: _platform.os.toString()
|
||||||
})
|
})
|
||||||
.data('detectedWallet',_detectedWallet)
|
.data('detectedWallet',_detectedWallet)
|
||||||
.click(onDownloadClick)
|
.click(onDownloadClick)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue