install.js: refactor to template string (#340)
This commit is contained in:
parent
21aa0a2390
commit
ad1b292b6d
@ -43,6 +43,6 @@ function onProgress(bytesTotal, delta) {
|
||||
|
||||
function toMegabytes(bytes) {
|
||||
let mb = bytes / 1024 / 1024;
|
||||
return (Math.round(mb * 10) / 10) + ' Mb';
|
||||
return `${Math.round(mb * 10) / 10} Mb`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user