From 668732f0188d9f98ac63bae368d4ecbff4cf571c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 26 Jul 2023 15:34:07 +0800 Subject: Fetch and display announcement message --- contents/ui/kanvas.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contents/ui/kanvas.js') diff --git a/contents/ui/kanvas.js b/contents/ui/kanvas.js index dbd2526..a8a8f7c 100644 --- a/contents/ui/kanvas.js +++ b/contents/ui/kanvas.js @@ -83,6 +83,7 @@ function syncCourses(courses, courseIndices, showSubmittedAssignments, userId) { courseId: course.id, course: course.code, title: announcement.title, + message: announcement.message, url: announcement.html_url, important: plasmoid.configuration.importantAnnouncements .includes(announcement.id.toString()), @@ -133,6 +134,7 @@ function syncCourses(courses, courseIndices, showSubmittedAssignments, userId) { courseId: course.id, course: course.code, title: assignment.name, + message: "", // if null, use empty string to suppress errors dueAt: assignment.due_at || "", submitted: submitted, -- cgit v1.2.3