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:
flyingrub 2017-03-13 16:12:00 +01:00
parent e5e3509284
commit 893cd425c8

View File

@ -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");
}
/**