fix: switch to blockchain.masternode.io

This commit is contained in:
Joshua Seigler 2016-09-09 20:06:56 -04:00
parent 77d3805880
commit 336838c95a
2 changed files with 5 additions and 7 deletions

6
app.js
View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
var socket = io("http://insight.masternode.io:3000/"); var socket = io("https://blockchain.masternode.io/");
function playSound(url){ function playSound(url){
var audio = document.createElement('audio'); var audio = document.createElement('audio');
@ -25,7 +25,7 @@ var onTransaction = function(data) {
tx.className = 'tx'; tx.className = 'tx';
var txValue = document.createElement('a'); var txValue = document.createElement('a');
txValue.className = 'txValue'; txValue.className = 'txValue';
txValue.href = 'http://insight.masternode.io:3000/tx/' + data.txid; txValue.href = 'https://blockchain.masternode.io/tx/' + data.txid;
txValue.target = '_blank'; txValue.target = '_blank';
txValue.setAttribute('rel', 'noopener'); txValue.setAttribute('rel', 'noopener');
var txOutputs = document.createElement('div'); var txOutputs = document.createElement('div');
@ -53,7 +53,7 @@ var onBlock = function(data) {
playSound('assets/whoosh.mp3'); playSound('assets/whoosh.mp3');
var newBlock = document.createElement('a'); var newBlock = document.createElement('a');
newBlock.className = 'blockDivider'; newBlock.className = 'blockDivider';
newBlock.href = 'http://insight.masternode.io:3000/block/' + data; newBlock.href = 'https://blockchain.masternode.io/block/' + data;
newBlock.target = '_blank'; newBlock.target = '_blank';
newBlock.setAttribute('rel', 'noopener'); newBlock.setAttribute('rel', 'noopener');
newBlock.appendChild(document.createTextNode(data)); newBlock.appendChild(document.createTextNode(data));

View file

@ -4,15 +4,13 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>Dash transaction visualizer</title> <title>Dash transaction visualizer</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<meta http-equiv="Content-Security-Policy" content="script-src https://seigler.github.io http://insight.masternode.io:3000; connect-src http://insight.masternode.io:3000;">
</head> </head>
<body> <body>
<div id="connectionStatus" class="is-connecting"></div> <div id="connectionStatus" class="is-connecting"></div>
<div id="transactionList"> <div id="transactionList"></div>
</div>
<script src="http://insight.masternode.io:3000/socket.io/socket.io.js"></script> <script src="https://blockchain.masternode.io/socket.io/socket.io.js"></script>
<script src="app.js"></script> <script src="app.js"></script>
</body> </body>
</html> </html>