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