mozilla / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
176 stars 278 forks source link

Added Math.log10 polyfill for IE11 support. #883

Closed daubaris closed 7 years ago

daubaris commented 7 years ago

Issue: src/filesystem/impls/filer/lib/Sizes.js:48: var exponent = Math.min(Math.floor(Math.log10(num) / 3), UNITS.length - 1); IE11 currently does not support Math.log10:

mozilla docs

So the solution for it according to the mozilla documents is to add the polyfill.

humphd commented 7 years ago

Great job @daubaris, thanks for researching and doing the PR!

This should be live on our staging server within the hour, see https://bramble.mofostaging.net/en-US/ if you want to test it there when it does.