cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

Uncaught SyntaxError: Variable 'MIDIAccess' has already been declared #44

Closed kchapelier closed 10 years ago

kchapelier commented 10 years ago

It seems that you can't anymore replace a declared variable by a named function in strict mode in the last release of Canary.

Replacing the declaration function MIDIAccess() { by MIDIAccess = function() { fixes the error.