这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 3c36dcb

Browse files
Merge pull request #267 from mjwilson-google/not-allowed-error
Use NotAllowedError instead of SecurityError
2 parents 4f5f567 + b7806b8 commit 3c36dcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ <h2>
330330
<p>
331331
<em><b>failure</b></em>: Let <var>error</var> be a new
332332
{{DOMException}}. This exception's .name should be
333-
{{"SecurityError"}} if the user or their security settings
333+
{{"NotAllowedError"}} if the user or their security settings
334334
denied the application from creating a MIDIAccess instance
335335
with the requested options, or if the error is the result of
336336
<var>document</var> not being [=allowed to use=] the feature,
@@ -375,7 +375,7 @@ <h2 id="MIDIOptions">
375375
{{requestMIDIAccess()}}, if this member is set to true, but
376376
[=System Exclusive=] support is denied (either by policy or by
377377
user action), the access request will fail with a
378-
{{"SecurityError"}} error. If this support is not requested (and
378+
{{"NotAllowedError"}} error. If this support is not requested (and
379379
allowed), the system will throw exceptions if the user tries to
380380
send [=System Exclusive=] messages, and will silently mask out
381381
any [=System Exclusive=] messages received on the port.
@@ -392,7 +392,7 @@ <h2 id="MIDIOptions">
392392
{{requestMIDIAccess()}}, if this member is set to true, but
393393
software synthesizer support is denied (either by policy or by
394394
user action), the access request will fail with a
395-
{{"SecurityError"}} error. If this support is not requested, the
395+
{{"NotAllowedError"}} error. If this support is not requested, the
396396
system should not include any software synthesizers in the
397397
{{MIDIAccess}} exposure of available ports.
398398
</p>

0 commit comments

Comments
 (0)