Open couraudt opened 7 years ago
Thanks for this -- I'll take a look as soon as I can!
Same issue here, can confirm this seems to fix it
I had the same issues as #30 and #31 on Linux Mint 18.1. I can confirm that this patch solves both.
@nicoma in #31 publishes a applet.js
with a lot of changes. He tackles this problem with the following code. Maybe it's worth considering this approach:
for (i in this.worldclocks) {
try {
this._worldclocks[i] = this.worldclocks[i].split("|");
}
catch(e) {
// global.logError("error to fix : " + e); //TODO
}
}
Yes, a cleaner way is to refork the initial project and add the world clock features (as I tried to do).
Concerning the "split is not a function" . a try catch is not really clean..
The solution of @sweetdub is valid until there is no solution to have only a list of String elements.
For me, the initial list "this.worldclocks" should only contains String elements with a pipe.
Hi there,
FIrst of all thanks for your cinnamon applets, it's very useful for me!
Since last Cinnamon update (3.2.x), your applet didn't work any more. I had this issue:
After looking at the code, I found that there's an element added at the end of the wordclocks array and that element is a function. I don't know where it come from, neither what changed in the Cinnamon applet configuration variables.
Anyway, this patch fix the issue and make the clock works again. but may be there's maybe something more to change in the code.