mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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:
parent
cf2ed65938
commit
7e81deb06e
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user