From b57444b4ca3a3264b5098d265364a687da78882f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 20 Dec 2017 18:45:22 +0100 Subject: [PATCH] switch to new proxy url --- _src/_assets/javascripts/page-getstarted.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_src/_assets/javascripts/page-getstarted.js b/_src/_assets/javascripts/page-getstarted.js index 3578df1..3d83425 100644 --- a/_src/_assets/javascripts/page-getstarted.js +++ b/_src/_assets/javascripts/page-getstarted.js @@ -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