fixed titles
This commit is contained in:
parent
44ab279ab3
commit
26dbff458c
1 changed files with 1 additions and 4 deletions
|
|
@ -107,17 +107,14 @@ function importStyles() {
|
|||
);
|
||||
});
|
||||
|
||||
let currentTitle = 0;
|
||||
// interval the task title
|
||||
setInterval(async () => {
|
||||
let taskTitle = document.querySelector(".title");
|
||||
let taskTitleText = taskTitle.innerText;
|
||||
|
||||
// cycle through a list of titles
|
||||
let titles = configs.animation.titles;
|
||||
|
||||
// get current title
|
||||
let currentTitle = titles.indexOf(taskTitleText);
|
||||
|
||||
// if current title is the last title, set it to the first title
|
||||
if (currentTitle === titles.length - 1) {
|
||||
currentTitle = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue