Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<script>
async function showNotification() {
const registration = await navigator.serviceWorker.ready;
await registration.showNotification('foo');
}
</script>