From c5edd6d99254eb51590bbb42be44fc8620bcdc16 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 13 Aug 2022 23:07:23 -0700 Subject: [PATCH] Use ID on refresh button to clarify event listener --- index.html | 2 +- script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index be066a2..29d10a1 100644 --- a/index.html +++ b/index.html @@ -71,7 +71,7 @@

A newer version of this page is available.

- +
diff --git a/script.js b/script.js index 99b3bbf..9f9cd52 100644 --- a/script.js +++ b/script.js @@ -13,7 +13,7 @@ cacheChannel.addEventListener('message', e => { 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(); -- 2.47.3