diff options
author | Sam Potts <sam@potts.es> | 2018-08-05 21:48:42 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-08-05 21:48:42 +1000 |
commit | 4ea458e1a3c5b3dfeb88c2f6c015b3c06bf2bbc0 (patch) | |
tree | 033dcd4d338792f4b5410cde05906afd93aac7cc /src/js/controls.js | |
parent | aacb1720170f46e8041517eadd79bf069c57d917 (diff) | |
download | plyr-4ea458e1a3c5b3dfeb88c2f6c015b3c06bf2bbc0.tar.lz plyr-4ea458e1a3c5b3dfeb88c2f6c015b3c06bf2bbc0.tar.xz plyr-4ea458e1a3c5b3dfeb88c2f6c015b3c06bf2bbc0.zip |
Rounded aria-valuetext to 1 decimal place
Diffstat (limited to 'src/js/controls.js')
-rw-r--r-- | src/js/controls.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js index 101b7e2a..acc9d011 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -645,7 +645,7 @@ const controls = { } else if (matches(range, this.config.selectors.inputs.volume)) { const percent = range.value * 100; range.setAttribute('aria-valuenow', percent); - range.setAttribute('aria-valuetext', `${percent}%`); + range.setAttribute('aria-valuetext', `${percent.toFixed(1)}%`); } else { range.setAttribute('aria-valuenow', range.value); } |