<!-- Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/ -->
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="UTF-8">
  <title>Service worker test</title>
</head>
<body>
<script type="text/javascript">
"use strict";

let registration;

window.registerServiceWorker = async function() {
  registration = await navigator.serviceWorker.register(
    "controlled-install-sw.js"
  );
  window.sw = registration;
};

window.installServiceWorker = function() {
  registration.installing.postMessage("install-service-worker");
};
</script>
</body>
</html>
