diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-17 03:25:43 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-17 03:25:43 +0200 |
commit | 6de857a5d519d45457357ade7de85b0ed854f21c (patch) | |
tree | 335ae9bc93d4efe7759e58085949af303087f84d /src/js/url-generators.js | |
parent | ebfc7ffb1bbfdd6b6c9fb2b810de02b53ae9aafe (diff) | |
download | arching-kaos-web-ui-6de857a5d519d45457357ade7de85b0ed854f21c.tar.gz arching-kaos-web-ui-6de857a5d519d45457357ade7de85b0ed854f21c.tar.bz2 arching-kaos-web-ui-6de857a5d519d45457357ade7de85b0ed854f21c.zip |
Updates and fixes and features
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r-- | src/js/url-generators.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 |