-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
85 lines (75 loc) · 3.37 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<title>Web App URL Handlers</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Edge Origin Trial token -->
<meta http-equiv="origin-trial" content="AhJZIfUD+3eFxnbioRawrKRWt58YBa/vq0vd+kie7Iyrwh6gDcd30XplpBtQiNQ1UejZcWuum7ROTAy8qJzWLkkAAABzeyJvcmlnaW4iOiJodHRwczovL2x1aHVhbmdtc2Z0LmdpdGh1Yi5pbzo0NDMiLCJpc1N1YmRvbWFpbiI6dHJ1ZSwiZmVhdHVyZSI6IldlYkFwcFVybEhhbmRsaW5nIiwiZXhwaXJ5IjoxNjQzMTQ5MTc3fQ==">
<!-- Chrome Origin Trial token -->
<meta http-equiv="origin-trial" content="AlhE40o1bCSQQEndO/8wbWjaT84OSSBpvJc8XnEIHfDbFVOVfi3Ekexj6E/pXYcItKlMuXyw0VPaTy+7HGzS2wgAAABzeyJvcmlnaW4iOiJodHRwczovL2x1aHVhbmdtc2Z0LmdpdGh1Yi5pbzo0NDMiLCJmZWF0dXJlIjoiV2ViQXBwVXJsSGFuZGxpbmciLCJleHBpcnkiOjE2NDMxNTUxOTksImlzU3ViZG9tYWluIjp0cnVlfQ==">
<link rel="shortcut icon" type="image/jpg" href="./assets/favicon.ico" />
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="./style.css" />
<link rel="manifest" href="./manifest.json" />
<!-- import the webpage's javascript file -->
<script src="./script.js" defer></script>
<script type="module">
import "https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate";
const el = document.createElement("pwa-update");
document.body.appendChild(el);
</script>
</head>
<body>
<img src="https://cdn.glitch.com/47e82a3e-e99d-4a0a-86f9-4f8bea8ede1e%2Fastronaut-icon.png?v=1587002651149"
alt="Astronaut." height="200" width="200" />
<h1>
Web App URL Handlers Sample App
</h1>
<h2>
<a href="https://github.com/WICG/pwa-url-handler/blob/master/explainer.md">Explainer</a>
</h2>
<h2>
<a href="https://www.chromestatus.com/feature/5739732661174272">Chrome platform status</a>
</h2>
<h2>
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=1072058">crbug</a>
</h2>
<div>
Instructions:
<ol>
<li>Set browser as the OS default browser</li>
<li>Enable feature flag <a
href="about://flags/#enable-desktop-pwas-url-handling">#enable-desktop-pwas-url-handling</a></li>
<li>Install PWA from current page</li>
<li>(Optional) Disable feature flag to simulate Origin Trial behavior</li>
<li>Activate test URLs from the OS (eg. in Windows using the run dialog)</li>
</ol>
</div>
<div>
Test URLs:
<ul>
<li>https://luhuangmsft.github.io/pwa</li>
<li>https://luhuangmsft.github.io</li>
<li>https://luhuangmsft.github.io/target.html</li>
<li>https://mandymsft.github.io/pwa</li>
<li>https://mandymsft.github.io</li>
<li>https://mandymsft.github.io/404</li>
</ul>
</div>
<div>
Troubleshooting instructions:
<ol>
<li>Visit <a href="about://web-app-internals/">about://web-app-internals</a> to check that "url_handlers" in
manifest was parsed and applied</li>
<li>Visit <a href="about://local-state/">about://local-state</a> to check that web-app-origin-association data has
been validated and saved to "url_handler_info"</li>
</ol>
</div>
<!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix -->
<div class="glitchButton" style="position:fixed;top:20px;right:20px;"></div>
<script src="https://button.glitch.me/button.js"></script>
</body>
</html>