From 4eab572dc5ab505528a8d13f1333470b679c76c1 Mon Sep 17 00:00:00 2001 From: Pascal Martin Date: Wed, 30 Dec 2020 13:06:56 -0800 Subject: [PATCH] Clarify label (better) --- public/config.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/config.html b/public/config.html index 25a890b..593c0c1 100644 --- a/public/config.html +++ b/public/config.html @@ -635,7 +635,10 @@ button.className = 'configactionbutton'; button.onclick = sprinklerRequestRefresh; button.onclickUrl = 'http://'+response.host+'/sprinkler/config'; - button.innerHTML = 'Import from '+response.host; + if (response.host.toUpperCase() == location.hostname.toUpperCase()) + button.innerHTML = 'Reload from '+response.host; + else + button.innerHTML = 'Import from '+response.host; bottom.appendChild(button); } }