aboutsummaryrefslogtreecommitdiff
path: root/src/js/url-generators.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r--src/js/url-generators.js10
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