mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 04:29:41 +00:00
Fixing eslint issues
This commit is contained in:
parent
2d9d28aa0f
commit
a5bb9d962d
@ -108,7 +108,7 @@ Module.register("newsfeed", {
|
|||||||
url: this.getActiveItemURL()
|
url: this.getActiveItemURL()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (this.newsItems.length == 0) {
|
if (this.newsItems.length === 0) {
|
||||||
return {
|
return {
|
||||||
loaded: false
|
loaded: false
|
||||||
};
|
};
|
||||||
@ -185,7 +185,7 @@ Module.register("newsfeed", {
|
|||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var item of newsItems) {
|
newsItems.forEach((item) => {
|
||||||
//Remove selected tags from the beginning of rss feed items (title or description)
|
//Remove selected tags from the beginning of rss feed items (title or description)
|
||||||
if (this.config.removeStartTags === "title" || this.config.removeStartTags === "both") {
|
if (this.config.removeStartTags === "title" || this.config.removeStartTags === "both") {
|
||||||
for (let f = 0; f < this.config.startTags.length; f++) {
|
for (let f = 0; f < this.config.startTags.length; f++) {
|
||||||
@ -222,7 +222,8 @@ Module.register("newsfeed", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
// get updated news items and broadcast them
|
// get updated news items and broadcast them
|
||||||
var updatedItems = [];
|
var updatedItems = [];
|
||||||
newsItems.forEach((value) => {
|
newsItems.forEach((value) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user