From d66a44e57c176aec1920cef7b4525aa4aac7e63f Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Thu, 13 May 2021 02:50:43 -0400 Subject: [PATCH] Update electron.html --- electron.html | 46 +++++++++++++++------------------------------- 1 file changed, 15 insertions(+), 31 deletions(-) diff --git a/electron.html b/electron.html index 4a20067..9f38e35 100644 --- a/electron.html +++ b/electron.html @@ -60,6 +60,7 @@ button.glyphicon-button.active.focus { right: 2px; top: 1px; color:white; + cursor:pointer; } #header{ width:100%; @@ -114,6 +115,7 @@ input[type='checkbox']:checked { border-radius: 10px; padding: 1em; background: #eaeaea; + cursor:pointer; } label[for="audioOutput"] { font-size: 3em; @@ -234,7 +236,7 @@ ul#lastUrls li:nth-child(even) { - +
@@ -263,13 +265,18 @@ ul#lastUrls li:nth-child(even) { var lastUrls = JSON.parse(localStorage.getItem('lastUrls')); if (lastUrls != undefined) { document.querySelector("#changeText").value = lastUrls[0]; - - lastUrls.forEach((url)=>{ - var o = document.createElement('option'); - o.value = url; - o.text = url; - document.querySelector("#lastUrls").appendChild(o); - }) + if (lastUrls.length>0){ + lastUrls.forEach((url)=>{ + var o = document.createElement('option'); + o.value = url; + o.text = url; + document.querySelector("#lastUrls").appendChild(o); + }) + } else { + document.querySelector("#history").style.display="none"; + } +} else { + document.querySelector("#history").style.display="none"; } function setUrl(){ @@ -503,26 +510,3 @@ getPermssions(); - - - - - - - - - - - - - - - - - - - - - - -