Skip to content

Commit

Permalink
Merge pull request #267 from mjwilson-google/not-allowed-error
Browse files Browse the repository at this point in the history
Use NotAllowedError instead of SecurityError
  • Loading branch information
mjwilson-google committed Sep 5, 2024
2 parents 4f5f567 + b7806b8 commit 3c36dcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ <h2>
<p>
<em><b>failure</b></em>: Let <var>error</var> 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
<var>document</var> not being [=allowed to use=] the feature,
Expand Down Expand Up @@ -375,7 +375,7 @@ <h2 id="MIDIOptions">
{{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.
Expand All @@ -392,7 +392,7 @@ <h2 id="MIDIOptions">
{{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.
</p>
Expand Down

0 comments on commit 3c36dcb

Please sign in to comment.