mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 09:46:57 +01:00
switch over urls for transaction tool
This commit is contained in:
parent
3356111107
commit
675aecedef
@ -3,7 +3,8 @@
|
||||
//=include bigchain/tab.js
|
||||
//=include bigchain/newsletter.js
|
||||
|
||||
const ipdbUrl = 'https://test.ipdb.io'
|
||||
const bigchaindbUrl = 'https://test.bigchaindb.com'
|
||||
const proxyUrl = 'https://getstarted.ipdb.io:4443'
|
||||
|
||||
jQuery(function($) {
|
||||
|
||||
@ -54,7 +55,7 @@ window.addEventListener('DOMContentLoaded', function domload(event) {
|
||||
window.removeEventListener('DOMContentLoaded', domload, false)
|
||||
|
||||
const driver = window.BigchainDB
|
||||
const API_PATH = 'https://getstarted.ipdb.io:4443/api/v1/'
|
||||
const API_PATH = proxyUrl + '/api/v1/'
|
||||
|
||||
const form = document.getElementById('form-transaction')
|
||||
const postButton = document.getElementById('post')
|
||||
@ -124,7 +125,7 @@ window.addEventListener('DOMContentLoaded', function domload(event) {
|
||||
const outputContent = JSON.stringify(response, null, 2) // indented with 2 spaces
|
||||
output.textContent = outputContent
|
||||
|
||||
transactionLink.href = ipdbUrl + '/api/v1/transactions/' + response.id
|
||||
transactionLink.href = bigchaindbUrl + '/api/v1/transactions/' + response.id
|
||||
|
||||
postButton.classList.add('disabled')
|
||||
postButton.style.opacity = 0
|
||||
|
Loading…
Reference in New Issue
Block a user