1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00

switch to new proxy url

This commit is contained in:
Matthias Kretschmann 2017-12-20 18:45:22 +01:00
parent 675aecedef
commit b57444b4ca
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -4,7 +4,8 @@
//=include bigchain/newsletter.js
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($) {
@ -55,7 +56,7 @@ window.addEventListener('DOMContentLoaded', function domload(event) {
window.removeEventListener('DOMContentLoaded', domload, false)
const driver = window.BigchainDB
const API_PATH = proxyUrl + '/api/v1/'
const API_PATH = proxyUrl + apiPath
const form = document.getElementById('form-transaction')
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
output.textContent = outputContent
transactionLink.href = bigchaindbUrl + '/api/v1/transactions/' + response.id
transactionLink.href = bigchaindbUrl + apiPath + 'transactions/' + response.id
postButton.classList.add('disabled')
postButton.style.opacity = 0