diff options
author | Frederick Yin <fkfd@fkfd.me> | 2023-07-26 15:34:07 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2023-07-26 15:34:07 +0800 |
commit | 668732f0188d9f98ac63bae368d4ecbff4cf571c (patch) | |
tree | a8552e58524f65fdfd2c2d731e26a90a0fc8dfe8 /contents/ui/kanvas.js | |
parent | d1486dfb2e7f46940ac544276877ce21c7eef6dc (diff) |
Fetch and display announcement message
Diffstat (limited to 'contents/ui/kanvas.js')
-rw-r--r-- | contents/ui/kanvas.js | 2 |
1 files changed, 2 insertions, 0 deletions
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, |