Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 6bc3dff

Browse files
authored
Hotfix:Save tasks to Chrome local storage
Included an important line of code to save it to Chrome local storage.
1 parent ffbde2b commit 6bc3dff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function NewEntry(start, end, date, description, TodayDate, FormattedDate) {
120120

121121
const TASKS = {start, end, date, description, timestamp: Date.now() };
122122
tasks.push(TASKS);
123+
chrome.storage.local.set({ tasks: tasks }, () => {});
123124
alert("Hours have been saved.", tasks);
124125
ResetField(start, end, date, description, TodayDate, FormattedDate);
125126
ViewSelector();
@@ -138,4 +139,4 @@ function displayLogs() {
138139
.map(t => `Date: ${t.date} | Start Time: ${t.start}– End Time ${t.end}\n Task Overview: ${t.description}\n`)
139140
.join("\n" + "—".repeat(40) + "\n");
140141
});
141-
}
142+
}

0 commit comments

Comments
 (0)