From 372cbbfa86705357aae1f906e9415164c58dcfce Mon Sep 17 00:00:00 2001 From: Takashi Toyoshima Date: Tue, 27 Aug 2013 17:43:30 +0900 Subject: [PATCH] requestMIDIAccess will raise "InvalidSecurityError" Underlying systems may raise an error on initialization. JavaScript should be able to catch the error. --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d9ab733..a1004bd 100644 --- a/index.html +++ b/index.html @@ -257,7 +257,8 @@

requestMIDIAccess()

Let error be a new DOMError. This should be of type "SecurityError" if the user or their security settings denied the application from creating a MIDIAccess - instance with the requested options, or otherwise "NotSupportedError". + instance with the requested options, "InvalidStateError" + if underlying systems raise any error, or otherwise "NotSupportedError".