jQuery-SlotMachine icon indicating copy to clipboard operation
jQuery-SlotMachine copied to clipboard

Using polyfill to make slot machine work with IE

Open stefan-korn opened this issue 7 years ago • 1 comments

I have noticed that slot machine does not work with IE.

So while I personally feel this is totally ok, because IE is such bad stuff that has hampered web dev for such a long time, there might be cases where IE compatibility maybe important for a project. I am working on such a project recently ...

So I found that using Babel Polyfill (https://babeljs.io/docs/usage/polyfill/) makes slot machine work with IE (tested in IE11 at least).

So maybe this might be worth a hint in the readme.

stefan-korn avatar May 28 '18 15:05 stefan-korn

Hello @stefan-korn. I forgot what is IE a few years ago XD

Just kidding... To solve this I recommend you to build the source files located in the npm package (lib/ directory). Just add the main file (lib/index.js) to your pipeline (Webpack, Gulp, ...) adding the babel preset to be able to import it in your application.

josex2r avatar Jun 19 '18 10:06 josex2r