Add call counter

This commit is contained in:
2020-04-14 18:20:37 +02:00
parent fe4e659b08
commit 6fa34d8896
3 changed files with 41 additions and 0 deletions

View File

@ -818,4 +818,19 @@ function requestUserScreen() {
});
})
}
/**
* Rpad function
*
* @param {String} str The string
* @param {number} len Expected length
* @param {string} fill Fill character
*/
function rpad(str, len, fill) {
str = String(str)
fill = String(fill)
while(str.length < len)
str = fill + str
return str
}