summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/fetch-later/resources/fetch-later.html
blob: b569e1a076ac210d87d01b51ded0a8943476eac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<head>
</head>
<body>
  <script>
    const PARAMS = new URL(location.href).searchParams;
    const TARGET_URL= decodeURIComponent(PARAMS.get('url')) || '';

    fetchLater(TARGET_URL, {activateAfter: 0});
    if (window.opener) {
      window.opener.postMessage("done", "*");
    }
  </script>
</body>