mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Bug 1346812 - Use standard pad functions in aboutTelemetry.js r=gfritzsche
MozReview-Commit-ID: 7S3tUVvoKsv --HG-- extra : rebase_source : 9875555627726e55134a7ab65fe35487f7a25b02
This commit is contained in:
parent
e5e3509284
commit
893cd425c8
@ -175,7 +175,7 @@ function removeAllChildNodes(node) {
|
||||
* Pad a number to two digits with leading "0".
|
||||
*/
|
||||
function padToTwoDigits(n) {
|
||||
return (n > 9) ? n : "0" + n;
|
||||
return new String(n).padStart(2,"0");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user