Skip to content

Commit

Permalink
Latest tweeks
Browse files Browse the repository at this point in the history
  • Loading branch information
raguay committed Feb 3, 2020
1 parent a1a0125 commit d3c4d67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions UI/src/UI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@
let thirtyCount = 0;
onMount(() => {
var unsubscribeSeconds = Seconds.subscribe((value)=>{
});
UpdateTimeSeconds();
UpdateTimeThirtyMinutes();
return(() => {
unsubscribeSeconds();
});
});
Expand All @@ -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);
}
Expand Down
3 changes: 3 additions & 0 deletions UI/src/components/Desktop.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,8 @@
background = setBackground(config);
}
});
return(() => {
unsubscribeThirtyMinute();
});
});
</script>
2 changes: 1 addition & 1 deletion UI/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d3c4d67

Please sign in to comment.