DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (4a45ed98fb43)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
  <script>

    function waitOnWorkerMessage(type) {
      return new Promise(function(res, rej) {
        function onMessage(e) {
          if (e.data.type == type) {
            navigator.serviceWorker.removeEventListener("message", onMessage);
            (e.data.okay == "yes" ? res : rej)(e.data);
          }
        }
        navigator.serviceWorker.addEventListener("message", onMessage);
      });
    }

  </script>
</head>
<body>

</body>
</html>