mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Add fix for chaotic newsfeed display after network connection loss
This commit is contained in:
parent
e9650285bd
commit
730f2eb0b8
@ -23,6 +23,7 @@ _This release is scheduled to be released on 2022-01-01._
|
||||
|
||||
- Fixed wrong file `kr.json` to `ko.json`. Use language code 'ko' instead of 'kr' for Korean language.
|
||||
- Fixed `feels_like` data from openweathermaps current weather being ignored (#2678).
|
||||
- Fixed chaotic newsfeed display after network connection loss (#2638).
|
||||
|
||||
## [2.17.1] - 2021-10-01
|
||||
|
||||
|
@ -295,6 +295,9 @@ Module.register("newsfeed", {
|
||||
this.sendNotification("NEWS_FEED", { items: this.newsItems });
|
||||
}
|
||||
|
||||
// #2638 Clear timer if it already exists
|
||||
if (this.timer) clearInterval(this.timer);
|
||||
|
||||
this.timer = setInterval(() => {
|
||||
this.activeItem++;
|
||||
this.updateDom(this.config.animationSpeed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user