Bug 1346812 - Use standard pad functions in aboutTelemetry.js r=gfritzsche

MozReview-Commit-ID: 7S3tUVvoKsv

--HG--
extra : rebase_source : 2355fbfc767ee6cde61b79269105455301d96335
This commit is contained in:
flyingrub 2017-03-13 16:12:00 +01:00
parent cf2ed65938
commit 7e81deb06e

View File

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