AENeuro / HKU-Moodle-Helper

9 stars 6 forks source link

fix several exceptions and updated some urls #5

Closed PeterZh6 closed 3 months ago

PeterZh6 commented 4 months ago

Update to Moodle Helper Extension for v2 Manifest

This PR serves as an update to Moodle Helper, aiming for the v2 manifest of the current Moodle Helper extension.

  1. Fixes in addCourseOfSem Function:

    • Addressed issues where the function was incorrectly trying to find courses on non-home pages like /course/view.php, causing exceptions.
    • Prevented the creation of course cards when courseList is empty, which previously caused exceptions.
  2. Refactoring:

    • Refactored URL paths into constants for better readability in contentScript.js.
  3. Feedback URL Update:

    • Updated the feedback URL to a more recent one to ease the burden on the previous contributor.
  4. block-divider URL Update:

    • Updated the URL of block-divider as the previous one was removed and caused exceptions.