diff --git a/js/background.js b/js/background.js index b30850f8..fec3d494 100644 --- a/js/background.js +++ b/js/background.js @@ -205,15 +205,9 @@ function getCurrentSemesters() { // use the utexas review api for getting the list of departments function getCurrentDepartments() { - $.get("https://www.utexasreview.com/api/get_major", function (response) { + $.get("https://raw.githubusercontent.com/sghsri/UT-Registration-Plus/master/docs/departments.json", function (response) { if (response) { - let { majors } = response; - let indices = Object.keys(majors); - let new_departments = []; - for (let i = 0; i < indices.length; i++) { - new_departments.push(majors[i].abr); - } - departments = new_departments; + departments = JSON.parse(response); } }); }