From b7806b816a6fe64fc4555c9e414347eb7afef372 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 23 Aug 2024 18:27:51 -0700 Subject: [PATCH] Use NotAllowedError instead of SecurityError --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b1e45f0..ec4b168 100644 --- a/index.html +++ b/index.html @@ -330,7 +330,7 @@

failure: Let error be a new {{DOMException}}. This exception's .name should be - {{"SecurityError"}} if the user or their security settings + {{"NotAllowedError"}} if the user or their security settings denied the application from creating a MIDIAccess instance with the requested options, or if the error is the result of document not being [=allowed to use=] the feature, @@ -375,7 +375,7 @@

{{requestMIDIAccess()}}, if this member is set to true, but [=System Exclusive=] support is denied (either by policy or by user action), the access request will fail with a - {{"SecurityError"}} error. If this support is not requested (and + {{"NotAllowedError"}} error. If this support is not requested (and allowed), the system will throw exceptions if the user tries to send [=System Exclusive=] messages, and will silently mask out any [=System Exclusive=] messages received on the port. @@ -392,7 +392,7 @@

{{requestMIDIAccess()}}, if this member is set to true, but software synthesizer support is denied (either by policy or by user action), the access request will fail with a - {{"SecurityError"}} error. If this support is not requested, the + {{"NotAllowedError"}} error. If this support is not requested, the system should not include any software synthesizers in the {{MIDIAccess}} exposure of available ports.