mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
remove testing code
This commit is contained in:
parent
9a1c76a23a
commit
033d35ecc2
@ -153,10 +153,7 @@
|
|||||||
document.getElementsByClassName("btc-value")[0].innerHTML = "Refreshing...";
|
document.getElementsByClassName("btc-value")[0].innerHTML = "Refreshing...";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// const newPrice = await getBTCPrice();
|
const newPrice = await getBTCPrice();
|
||||||
await wait(2000);
|
|
||||||
const newPrice = Math.floor(Math.random() * (2 * 1000+ 1)) + (211701- 1000);
|
|
||||||
|
|
||||||
if (newPrice) {
|
if (newPrice) {
|
||||||
// Update the text content of the countdown span to the new bitcoin price
|
// Update the text content of the countdown span to the new bitcoin price
|
||||||
document.getElementsByClassName("btc-value")[0].innerHTML = "1 BTC = " + (newPrice || "N/A") + " {{$currency}}, updates in <span id='countdown'></span>";
|
document.getElementsByClassName("btc-value")[0].innerHTML = "1 BTC = " + (newPrice || "N/A") + " {{$currency}}, updates in <span id='countdown'></span>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user