File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lighthouse-core/report/html/renderer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,14 @@ class I18n {
6767 * @return {Intl.NumberFormat }
6868 */
6969 _byteFormatterForGranularity ( granularity ) {
70+ // assume any granularity above 1 will not contain fractional parts, i.e. will never be 1.5
7071 let numberOfFractionDigits = 0 ;
7172 if ( granularity < 1 ) {
72- // assumes granularities above 1 will not contain fractional parts, i.e. will never be 1.5
7373 numberOfFractionDigits = - Math . floor ( Math . log10 ( granularity ) ) ;
7474 }
75+
7576 return new Intl . NumberFormat ( this . _numberDateLocale , {
76- ...this . _numberDateLocale . resolvedOptions ( ) ,
77+ ...this . _numberFormatter . resolvedOptions ( ) ,
7778 maximumFractionDigits : numberOfFractionDigits ,
7879 minimumFractionDigits : numberOfFractionDigits ,
7980 } ) ;
You can’t perform that action at this time.
0 commit comments