summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/notifications/resources/shownotification-window-iframe.html
blob: 2a45e794656fcbe20d7dcd741b37bffcc9630851 (plain)
1
2
3
4
5
6
7
8
<!DOCTYPE html>
<meta charset="utf-8">
<script>
  async function showNotification() {
    const registration = await navigator.serviceWorker.ready;
    await registration.showNotification('foo');
  }
</script>