Transitional change to support old and new Web MIDI API