Working on rewrite version 3. Focus on caching and opening after download.
This commit is contained in:
@@ -158,9 +158,9 @@ function format_bytes(bytes, decimals = 2) {
|
||||
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
||||
}
|
||||
|
||||
function shorten_filename(filename) {
|
||||
function shorten_filename(filename, max_length=45) {
|
||||
let length = filename.length;
|
||||
let char_over = filename.length-45;
|
||||
let char_over = filename.length-max_length;
|
||||
let new_filename = null;
|
||||
let wildcards = char_over;
|
||||
if (char_over > 0) {
|
||||
|
||||
Reference in New Issue
Block a user