Skip to content

Commit 10867ed

Browse files
committed
refactor: rename UserResponseObject -> PromptResponseObject
1 parent 93ba58c commit 10867ed

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,14 +497,14 @@ <h3>
497497
<pre class="idl">
498498
[Constructor(DOMString typeArg, optional BeforeInstallPromptEventInit eventInit)]
499499
interface BeforeInstallPromptEvent : Event {
500-
Promise&lt;UserResponseObject&gt; prompt();
500+
Promise&lt;PromptResponseObject&gt; prompt();
501501
};
502502

503503
dictionary BeforeInstallPromptEventInit : EventInit {
504504
AppBannerPromptOutcome userChoice;
505505
};
506506

507-
dictionary UserResponseObject {
507+
dictionary PromptResponseObject {
508508
AppBannerPromptOutcome userChoice;
509509
};
510510
</pre>
@@ -547,8 +547,8 @@ <h3>
547547
<dfn>[[\userResponsePromise]]</dfn>
548548
</dt>
549549
<dd>
550-
A promise, which resolves with an <a>UserResponseObject</a>, which
551-
represent the outcome of <a>presenting an install prompt</a>.
550+
A promise, which resolves with an <a>PromptResponseObject</a>,
551+
which represent the outcome of <a>presenting an install prompt</a>.
552552
</dd>
553553
</dl>
554554
<section>
@@ -623,12 +623,12 @@ <h4>
623623
<a>Present an install prompt</a> and let <var>event</var>'s
624624
<a>[[\promptOutcome]]</a> be the result.
625625
</li>
626-
<li>Let <var>userResponseObj</var> be a newly created
627-
<a>UserResponseObject</a> whose <code>userChoice</code> member is
626+
<li>Let <var>responseObj</var> be a newly created
627+
<a>PromptResponseObject</a> whose <code>userChoice</code> member is
628628
set to event's <a>[[\promptOutcome]]</a>.
629629
</li>
630630
<li>Resolve <a>[[\userResponsePromise]]</a> with
631-
<var>userResponseObject</var>.
631+
<var>responseObj</var>.
632632
</li>
633633
</ol>
634634
</section>

0 commit comments

Comments
 (0)