From a67e70657eeecad08872ded16df549eb775dc819 Mon Sep 17 00:00:00 2001 From: Takashi Toyoshima Date: Tue, 3 Dec 2013 06:28:33 -0500 Subject: [PATCH] A returned Promise may be rejected with AbortError When a user is going to close the page, pending Promise may be rejected with AbortError. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d5ff65d..87b120a 100644 --- a/index.html +++ b/index.html @@ -225,7 +225,7 @@

requestMIDIAccess()

  • failure: 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, "InvalidStateError" if the underlying systems raise any errors, or otherwise it should be of type "NotSupportedError".

  • + user or their security settings denied the application from creating a MIDIAccess instance with the requested options, "AbortError" if the page is going to be closed for a user navigation, "InvalidStateError" if the underlying systems raise any errors, or otherwise it should be of type "NotSupportedError".

  • Call resolver's reject(value) method with error as value argument.