From 6de857a5d519d45457357ade7de85b0ed854f21c Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 17 Mar 2024 03:25:43 +0200 Subject: Updates and fixes and features --- src/js/url-generators.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/js/url-generators.js') diff --git a/src/js/url-generators.js b/src/js/url-generators.js index d92592d..c950f1e 100644 --- a/src/js/url-generators.js +++ b/src/js/url-generators.js @@ -25,12 +25,12 @@ function getHoldersOfActiveAssetURL(){ '&limit=200'; } -function getTrustlinesURL(){ +function getTrustlinesURL(code=null, issuer=null){ + var code = (code === null)? activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].code : code; + var issuer = (issuer === null) ? activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].issuer : issuer; return activeSettings.horizonAddresses[activeSettings.horizonSelectedAddress]+ - 'assets?asset_code='+ - activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].code+ - '&asset_issuer='+ - activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].issuer; + 'assets?asset_code='+code+ + '&asset_issuer='+issuer; } // vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4 -- cgit v1.2.3