diff --git a/UI/src/UI.svelte b/UI/src/UI.svelte index 13ef8b0..d8198d1 100644 --- a/UI/src/UI.svelte +++ b/UI/src/UI.svelte @@ -33,12 +33,9 @@ let thirtyCount = 0; onMount(() => { - var unsubscribeSeconds = Seconds.subscribe((value)=>{ - }); UpdateTimeSeconds(); UpdateTimeThirtyMinutes(); return(() => { - unsubscribeSeconds(); }); }); @@ -48,10 +45,9 @@ // use. // var ct = new Date(); - var min = ct.getMinutes(); Seconds.set({ hours: ct.getHours(), - minutes: min + minutes: ct.getMinutes() }); setTimeout(UpdateTimeSeconds, 1000); } diff --git a/UI/src/components/Desktop.svelte b/UI/src/components/Desktop.svelte index dbf67a2..5783898 100644 --- a/UI/src/components/Desktop.svelte +++ b/UI/src/components/Desktop.svelte @@ -73,5 +73,8 @@ background = setBackground(config); } }); + return(() => { + unsubscribeThirtyMinute(); + }); }); diff --git a/UI/src/main.js b/UI/src/main.js index bbf7d99..769ba19 100644 --- a/UI/src/main.js +++ b/UI/src/main.js @@ -43,7 +43,7 @@ const config = { backgroundType: 'pic', backgrounds: ['https://source.unsplash.com/random/1440x900?puppy', 'https://source.unsplash.com/random/1440x900?kitten', - 'https://source.unsplash.com/random/1440x900?hangglider', + 'https://source.unsplash.com/random/1440x900?glider', 'https://source.unsplash.com/random/1440x900?galaxy', 'http://www.talencia.cat/mypics/max/1/16113_stars-backgrounds.png'], backgroundColors: ['background: linear-gradient(to left top, blue, red) fixed',