Skip to content

Commit

Permalink
Update to new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mraksoll4 committed May 24, 2022
1 parent 6f595a0 commit 2ade358
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Bitweb-Chrome-Wallet
Light Bitweb Web wallet in the form of a chrome extension which utilises bitcoin.js and a simple REST API https://bitwebapi.scalaris.info
Light Bitweb Web wallet in the form of a chrome extension which utilises bitcoin.js and a simple REST API https://api.bitwebcore.net


### Installation
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<body>
<div class="text-center container">
<p style="padding-top: 20px;">
<a href="https://bitwebcore.org" target="_blank">
<a href="https://bitwebcore.net" target="_blank">
<img src="img/overlay.png" style="width: 64px; height: 64px; position: center;">
</a>
</p>
Expand Down
6 changes: 3 additions & 3 deletions js/chaininfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ window.onload = function (){

// Set history page to open to explorer according to mainnet or testnet & set ticker according to mainnet or testnet
if (apiget == "mainnet" || apiget == null) {
api = "https://bitwebapi.scalaris.info"
api = "https://api.bitwebcore.net"
prefix = "BTE"
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
$("#history").attr("href", href)
}
else if (apiget == "testnet"){
api = "https://api-testnet.bitwebcore.org"
prefix = "TBTE"
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
$("#history").attr("href", href)
}

Expand Down
10 changes: 5 additions & 5 deletions js/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ window.onload = function() {

// Sets History Tab to open to explorer
if (apiget == "mainnet" || apiget == null) {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
else if (apiget == "testnet") {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
$("#history").attr("href", href)

Expand All @@ -23,7 +23,7 @@ window.onload = function() {

function getImportAPI() {
// Set Network config according to Endpoint selection
if (localStorage.getItem("api") == "https://bitwebapi.scalaris.info" || localStorage.getItem("api") == null){
if (localStorage.getItem("api") == "https://api.bitwebcore.net" || localStorage.getItem("api") == null){
netconfig = {
'network': {
'messagePrefix': '\x19Bitweb Signed Message:\n',
Expand Down Expand Up @@ -95,10 +95,10 @@ $("#wifImport").click(function() {

// Sets History Tab to open to explorer
if (apiget == "mainnet") {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
else if (apiget == "testnet") {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
$("#history").attr("href", href)
})
Expand Down
10 changes: 5 additions & 5 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ window.onload = function() {

// Sets History Tab to open to explorer
if (apiget == "mainnet" || apiget == null) {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
else if (apiget == "testnet") {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
$("#history").attr("href", href)

Expand All @@ -29,7 +29,7 @@ window.onload = function() {

function getMainAPI() {
// Set Network config according to Endpoint selection
if (localStorage.getItem("api") == "https://bitwebapi.scalaris.info" || localStorage.getItem("api") == null){
if (localStorage.getItem("api") == "https://api.bitwebcore.net" || localStorage.getItem("api") == null){
netconfig = {
'network': {
'messagePrefix': '\x19Bitweb Signed Message:\n',
Expand Down Expand Up @@ -95,10 +95,10 @@ $("#generateAddress").click(function() {

// Sets History Tab to open to explorer
if (apiget == "mainnet" || apiget == null) {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
else if (apiget == "testnet") {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
$("#history").attr("href", href)
})
Expand Down
8 changes: 4 additions & 4 deletions js/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ window.onload = function() {

// Set history page to open to explorer & sets placeholder to testnet or mainnet prefix
if (apiget == "mainnet" || apiget == null) {
api = "https://bitwebapi.scalaris.info"
api = "https://api.bitwebcore.net"
inputPlaceholder.attr("placeholder", "web1q...")
href = "https://bitwebexplorer.scalaris.info/address/" + address
href = "https://explorer.bitwebcore.net/address/" + address
}
else if (apiget == "testnet"){
api = "https://api-testnet.bitwebcore.org"
inputPlaceholder.attr("placeholder", "tugar1q...")
href = "https://bitwebexplorer.scalaris.info/address/" + address
href = "https://explorer.bitwebcore.net/address/" + address
}
$("#history").attr("href", href)

Expand All @@ -38,7 +38,7 @@ window.onload = function() {
var errororsuccess
function getSendAPI() {
// Set Network config according to Endpoint selection
if (localStorage.getItem("api") == "https://bitwebapi.scalaris.info" || localStorage.getItem("api") == null){
if (localStorage.getItem("api") == "https://api.bitwebcore.net" || localStorage.getItem("api") == null){
netconfig = {
'network': {
'messagePrefix': '\x19Bitweb Signed Message:\n',
Expand Down
8 changes: 4 additions & 4 deletions js/settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//api = "https://bitwebapi.scalaris.info"
//api = "https://api.bitwebcore.net"
//localStorage.setItem("api", api)
var href
var selectedEndpoint = document.getElementById("endpointSelect")
Expand All @@ -14,10 +14,10 @@ window.onload = function() {

// Sets History Tab to open to explorer according to testnet or mainnet
if (apiget == "mainnet" || apiget == null) {
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
else if (apiget == "testnet"){
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
}
$("#history").attr("href", href)

Expand All @@ -37,7 +37,7 @@ selectedEndpoint.onchange = function () {
document.location.reload()
}

var mainnet = "https://bitwebapi.scalaris.info"
var mainnet = "https://api.bitwebcore.net"
var testnet = "https://api-testnet.bitwebcore.org"
// Set the api in local storage
function setAPI() {
Expand Down
6 changes: 3 additions & 3 deletions js/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ window.onload = function (){

// Set history page to open to explorer, sets placeholder to testnet or mainnet prefix & sets ticker according to mainnet or testnet
if (apiget == "mainnet" || apiget == null) {
api = "https://bitwebapi.scalaris.info"
api = "https://api.bitwebcore.net"
prefix = "BTE"
inputPlaceholder.attr("placeholder", "web1q...")
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
$("#history").attr("href", href)
}
else if (apiget == "testnet"){
api = "https://api-testnet.bitwebcore.org"
prefix = "TBTE"
inputPlaceholder.attr("placeholder", "tugar1q...")
href = "https://bitwebexplorer.scalaris.info/address/" + getaddress
href = "https://explorer.bitwebcore.net/address/" + getaddress
$("#history").attr("href", href)
}

Expand Down

0 comments on commit 2ade358

Please sign in to comment.