debugger22/github-audio

won't work in safari...

MoralCode opened this issue · 8 comments

tried listening in safari 9.1.3 on a mid-2011 iMac (OS X El Capitan 10.11.6) and it came up with this:
screen shot 2016-10-03 at 7 19 01 pm

disabled all extensions, still the same result. any ideas?

i might like to add that it works perfectly on chrome 53.0.2785.143 (64-bit) on the same machine

That's weird - I'm able to replicate this error on Safari Version 9.1 (11601.5.17.1) on a mid-2012 MacBook Pro (OS X El Capitan 10.11.4). The error in console is:

main.js:258: SyntaxError: Unexpected token '>'

Hope this helps in diagnosing - REALLY cool tool!

I think this problem occurs because safari don't support js arrow function notation.
captura de tela 2016-10-04 as 14 42 16

Applied a temporary patch. Can anyone please test?

I have macOS Sierra and it works fine on it.

Well, i try here and still the same.
captura de tela 2016-10-04 as 16 01 00

But when i change the line 259 to this:
captura de tela 2016-10-04 as 16 07 39

Works!

@Cardoso222 Thanks! Can I use it in the code?

@Cardoso222 Made the changes. 06e6421

i'm glad to help! @debugger22