From 3e97263caaf115e93847cc1ca5233d4d737a8e1a Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 6 Aug 2023 07:25:57 +0700 Subject: [PATCH] Change text of the "Reload" button to "Reloading..." after clicking on it --- better-xcloud.user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 49c217a..3db8194 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -2022,7 +2022,10 @@ function injectSettingsButton($parent) { // Setup Reload button const $reloadBtn = CE('button', {'class': 'better-xcloud-settings-reload-button', 'tabindex': 0}, 'Reload page to reflect changes'); - $reloadBtn.addEventListener('click', e => window.location.reload()); + $reloadBtn.addEventListener('click', e => { + window.location.reload(); + $reloadBtn.textContent = 'Reloading...'; + }); $wrapper.appendChild($reloadBtn); // Add Settings UI to the web page