Skip to content

Commit

Permalink
chore: revert default variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Nov 6, 2023
1 parent 350a18b commit f4cdf9f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tools/walletextension/api/staticOG/javascript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const gatewayaddress = "https://testnet.obscu.ro";
const obscuroscanLink = "https://testnet.obscuroscan.com";
const eventClick = "click";
const eventDomLoaded = "DOMContentLoaded";
const idJoin = "join";
Expand All @@ -15,12 +13,11 @@ const idRequestTokens = "requestTokens";
const idBegin = "begin-box";
const idSpinner = "spinner";
const obscuroGatewayVersion = "v1";
const pathJoin = gatewayaddress + "/" + obscuroGatewayVersion + "/join/";
const pathAuthenticate =
gatewayaddress + "/" + obscuroGatewayVersion + "/authenticate/";
const pathQuery = gatewayaddress + "/" + obscuroGatewayVersion + "/query/";
const pathRevoke = gatewayaddress + "/" + obscuroGatewayVersion + "/revoke/";
const pathVersion = gatewayaddress + "/" + "version/";
const pathJoin = obscuroGatewayVersion + "/join/";
const pathAuthenticate = obscuroGatewayVersion + "/authenticate/";
const pathQuery = obscuroGatewayVersion + "/query/";
const pathRevoke = obscuroGatewayVersion + "/revoke/";
const pathVersion = "/version/";
const obscuroChainIDDecimal = 443;
const methodPost = "post";
const methodGet = "get";
Expand All @@ -36,9 +33,11 @@ function isValidUserIDFormat(value) {
return typeof value === "string" && value.length === 64;
}

let obscuroGatewayAddress = gatewayaddress;
let obscuroGatewayAddress =
window.location.protocol + "//" + window.location.host;

// let obscuroGatewayAddress = window.location.protocol + "//" + window.location.host;
const gatewayaddress = "https://testnet.obscu.ro";
const obscuroscanLink = "https://testnet.obscuroscan.com";

let provider = null;

Expand Down

0 comments on commit f4cdf9f

Please sign in to comment.