Skip to content

Commit

Permalink
Fix: Respect streams for filetype display #1276
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed May 19, 2024
1 parent bed7912 commit 63f2869
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/js/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ function filetype(uri, long) {
if (uri === undefined) {
return '';
}
if (isStreamUri(uri) === true) {
return 'Stream';
}
const ext = uri.split('.').pop().toUpperCase();
if (long === false) {
return ext;
Expand Down

0 comments on commit 63f2869

Please sign in to comment.