<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Push notification replacing - ServiceWorker Cookbook</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    body {
      font-family: monospace;
      font-size: 1rem;
      white-space: pre-wrap;
    }
  </style>
  <link rel="manifest" href="manifest.json">
</head>
<body>
<p>This demo shows how to replace an old notification with a new one.</p>

<form>
Delay between notifications: <input id='notification-delay' type='number' value='5'></input> seconds
</form>

<button id="doIt">Request notifications</button>

<script src="./index.js"></script>
</body>
</html>

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Push notification replacing - ServiceWorker Cookbook</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    body {
      font-family: monospace;
      font-size: 1rem;
      white-space: pre-wrap;
    }
  </style>
  <link rel="manifest" href="manifest.json">
</head>
<body>
<p>This demo shows how to replace an old notification with a new one.</p>

<form>
Delay between notifications: <input id='notification-delay' type='number' value='2'></input> seconds
</form>

<button id="doIt">Request notifications</button>

<script src="./index.js"></script>
</body>
</html>

Decrease default delay between notifications
Decrease default delay between notifications
