mirror of
https://github.com/liyunze-coding/Chat-Task-Tic-Overlay.git
synced 2026-08-24 10:04:00 -05:00
modified taskList.js
This commit is contained in:
+1
-4
@@ -541,17 +541,14 @@ function hexToRgb(hex) {
|
||||
return `${r}, ${g}, ${b}`;
|
||||
}
|
||||
|
||||
let currentTitle = 0;
|
||||
// interval the task title
|
||||
setInterval(async () => {
|
||||
let taskTitle = document.getElementById("title");
|
||||
let taskTitleText = taskTitle.innerText;
|
||||
|
||||
// cycle through a list of titles
|
||||
const titles = configs.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;
|
||||
|
||||
Reference in New Issue
Block a user