make it periodically update

This commit is contained in:
idk
2020-01-12 18:35:02 -05:00
parent 8d1a76922c
commit aea232e56b

View File

@@ -270,8 +270,11 @@ function UpdateContents() {
UpdateContents();
/*setInterval(function() {
UpdateContents();
}, 750);*/
//var done = Echo(hello);
const minutes = 0.125;
const interval = minutes * 60 * 1000;
setInterval(function() {
// catch all the errors.
UpdateContents().catch(console.log);
}, interval); //var done = Echo(hello);
//done.then(Done);