mirror of https://github.com/espruino/BangleApps
fuzzyw: define f_string
As `let` was accidentally left out after the refactor on latest previous commit. To appease the linter and not pollute global scope.pull/3404/head
parent
bb57dfcd63
commit
720c897eab
|
@ -59,7 +59,7 @@
|
||||||
let segment = Math.round((date.getMinutes()*60 + date.getSeconds() + 1)/300);
|
let segment = Math.round((date.getMinutes()*60 + date.getSeconds() + 1)/300);
|
||||||
let hour = date.getHours() + Math.floor(segment/12);
|
let hour = date.getHours() + Math.floor(segment/12);
|
||||||
// add "" to load into RAM due to 2v21 firmware .replace on flashstring issue
|
// add "" to load into RAM due to 2v21 firmware .replace on flashstring issue
|
||||||
f_string = ""+fuzzy_string.minutes[segment % 12];
|
let f_string = ""+fuzzy_string.minutes[segment % 12];
|
||||||
if (f_string.includes('$1')) {
|
if (f_string.includes('$1')) {
|
||||||
f_string = f_string.replace('$1', fuzzy_string.hours[(hour) % 12]);
|
f_string = f_string.replace('$1', fuzzy_string.hours[(hour) % 12]);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue