blob: 7d6e344ed98b8c53ad659eec806d79887fc71c93 (
plain)
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
|
window.onload = () => {
const instruction = document.createElement("div");
instruction.innerHTML = `
<h2>
Instructions
</h2>
<ol>
<li>Install <a href="id-member-manifest-update-manual.html ">id-member-manifest-update-manual.html </a> as a PWA</li>
<li>
Launch the app from OS. The page should be launched to start_url v1.
</li>
<li>
Close the app window.
</li>
<li>
Trigger a manifest update event.
<p>
This step is specific to each browser implementation.
On Chrome, trigger the update by restarting the browser through chrome://restart.
</p>
</li>
<li>
Launch the app from OS again, start_url should be updated to v2.
</li>
</ol>
`;
document.body.appendChild(instruction);
};
async function main() {
await navigator.serviceWorker.register("id-member-service-worker.js");
await navigator.serviceWorker.ready;
}
main();
|