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