allprompt', ...)</code>, we would capture the event with <code>e.originalEvent</code>.</p>
</div>
<p>We register a second event listener, which fires on the toast button click. We first close the
toast, call the <code>prompt</code> method on the deferred event and log the result:</p>
<div class="sourceCode" id="cb939"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb939-1"><a href="mobile-pwa.html#cb939-1" aria-hidden="true" tabindex="-1"></a>app<span class="op">.</span><span class