added progress to tab title when not in focus
This commit is contained in:
parent
c13839a522
commit
c38d91db98
2 changed files with 26 additions and 4 deletions
|
@ -123,10 +123,17 @@ function bytes(num) {
|
|||
return `${nStr}${UNITS[exponent]}`;
|
||||
}
|
||||
|
||||
function percent(ratio) {
|
||||
return LOCALIZE_NUMBERS
|
||||
? ratio.toLocaleString(navigator.languages, { style: 'percent' })
|
||||
: `${Math.floor(ratio * 100)}%`;
|
||||
}
|
||||
|
||||
const ONE_DAY_IN_MS = 86400000;
|
||||
|
||||
module.exports = {
|
||||
bytes,
|
||||
percent,
|
||||
copyToClipboard,
|
||||
arrayToHex,
|
||||
hexToArray,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue