Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 893f78f

Browse files
Truncate client ID, product and platform info at 120 characters
On the connection listing page. Pair: @acogoluegnes.
1 parent e5d252b commit 893f78f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

priv/www/js/formatters.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,10 @@ function fmt_uri_with_credentials(uri) {
617617
function fmt_client_name(properties) {
618618
var res = [];
619619
if (properties.product != undefined) {
620-
res.push(fmt_trunc(properties.product, 10));
620+
res.push(fmt_trunc(properties.product, 120));
621621
}
622622
if (properties.platform != undefined) {
623-
res.push(fmt_trunc(properties.platform, 10));
623+
res.push(fmt_trunc(properties.platform, 120));
624624
}
625625
res = res.join(" / ");
626626

@@ -629,7 +629,7 @@ function fmt_client_name(properties) {
629629
}
630630

631631
if (properties.client_id != undefined) {
632-
res += '<sub>' + fmt_trunc(properties.client_id) + '</sub>';
632+
res += '<sub>' + fmt_trunc(properties.client_id, 120) + '</sub>';
633633
}
634634

635635
return res;

0 commit comments

Comments
 (0)