<dialog>
<p>A newer version of this page is available.</p>
- <button>Refresh</button>
+ <button id="refresh">Refresh</button>
</dialog>
<script type="module" src="/script.js"></script>
globalThis.components.get('toast').show();
}
});
-document.querySelector('dialog > button').addEventListener('click', _ => location.reload());
+document.querySelector('#refresh').addEventListener('click', _ => location.reload());
/* Global store for homepage metadata and HTML components. */
globalThis.metadata = new Map();