Skip to content

Commit

Permalink
Adding correct params
Browse files Browse the repository at this point in the history
  • Loading branch information
Revelationxl committed Oct 31, 2023
1 parent 13ecd44 commit a4ad1ca
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tools/walletextension/api/staticOG/javascript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const gatewayaddress = "https://testnet.obscu.ro"
const eventClick = "click";
const eventDomLoaded = "DOMContentLoaded";
const idJoin = "join";
Expand All @@ -14,11 +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 @@ -34,7 +33,7 @@ function isValidUserIDFormat(value) {
return typeof value === 'string' && value.length === 64;
}

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

let provider = null;

Expand Down

0 comments on commit a4ad1ca

Please sign in to comment.