mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 12:39:45 +00:00
Fixed variable redeclaration
This commit is contained in:
parent
db129cc19b
commit
260bc9664e
@ -221,9 +221,11 @@ Module.register("calendar", {
|
|||||||
var symbols = this.symbolsForEvent(event);
|
var symbols = this.symbolsForEvent(event);
|
||||||
// If symbols are displayed and custom symbol is set, replace event symbol
|
// If symbols are displayed and custom symbol is set, replace event symbol
|
||||||
if (this.config.displaySymbol && this.config.customEvents.length > 0) {
|
if (this.config.displaySymbol && this.config.customEvents.length > 0) {
|
||||||
for (var ev in this.config.customEvents) {
|
var ev;
|
||||||
|
var needle;
|
||||||
|
for (ev in this.config.customEvents) {
|
||||||
if (typeof this.config.customEvents[ev].symbol !== "undefined" && this.config.customEvents[ev].symbol !== "") {
|
if (typeof this.config.customEvents[ev].symbol !== "undefined" && this.config.customEvents[ev].symbol !== "") {
|
||||||
var needle = new RegExp(this.config.customEvents[ev].keyword, "gi");
|
needle = new RegExp(this.config.customEvents[ev].keyword, "gi");
|
||||||
if (needle.test(event.title)) {
|
if (needle.test(event.title)) {
|
||||||
symbols[0] = this.config.customEvents[ev].symbol;
|
symbols[0] = this.config.customEvents[ev].symbol;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user