fmin icon indicating copy to clipboard operation
fmin copied to clipboard

No graphs on Safari

Open nkurz opened this issue 9 years ago • 2 comments

Hello --

The current version of Safari on OSX 10.10.5 doesn't like something about your Javascript. It complains about an "unexpected token '>'" at fmin_vis.js:320 and doesn't show the animations.

Thanks!

nkurz avatar Nov 27 '16 02:11 nkurz

I tried it out on safari on my laptop (which is also on osx 10.10.5) and it loaded fine - so I'm not sure whats broken.

Does this page load for you? https://benfred.github.io/fmin/examples/nelder_mead.html

benfred avatar Nov 27 '16 02:11 benfred

No, that page also fails.

I looked a little deeper, and the problem is that I'm still running Safari 9.1.3, which does not support "arrow functions". Safari 10 does support them: http://caniuse.com/#feat=arrow-functions. Apparently I haven't rebooted for a couple months!

So probably fine to keep it the way it is, but be aware that those running not-that-old versions of Safari will be unable to see the graphs.

nkurz avatar Nov 27 '16 03:11 nkurz