From 1512867f42e4e04bcb2e13cdc35b8130cd21f06a Mon Sep 17 00:00:00 2001 From: Jennie Date: Mon, 6 Nov 2023 16:27:36 +0400 Subject: [PATCH] chore: revert default variables --- .../walletextension/api/staticOG/javascript.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/walletextension/api/staticOG/javascript.js b/tools/walletextension/api/staticOG/javascript.js index 5edb1c33bc..538f85b9d5 100644 --- a/tools/walletextension/api/staticOG/javascript.js +++ b/tools/walletextension/api/staticOG/javascript.js @@ -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"; @@ -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"; @@ -36,9 +33,10 @@ 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 obscuroscanLink = "https://testnet.obscuroscan.com"; let provider = null;