Open bmcleod opened 7 years ago
Hi. I am getting this exact error in IE while it is working fine in Chrome and Firefox. Safari appears to have the same error too. Sorry to ask what is probably a basic question but how do I implement the fix above? Any help is greatly appreciated.
Copy the poly-fill code in the link I referenced and paste it in to a JS file that is referenced in your HTML. It could be the same JS file you write code for the canvas gauges in or a new file called poly-fill.js (as an example)
Can someone add the polyfill function (for String.repeat), to file: lib/polyfill.js ?
IE11 (at least for me), does not support the new ECMAScript 2015's "repeat" method. To fix this, I included Mozilla's poly-fill. Now everything's peachy.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat#Polyfill