From b4e8c7589e53f1064d70703459cc6d66fae1b04c Mon Sep 17 00:00:00 2001 From: Kevin Dao Date: Tue, 28 Aug 2018 18:00:50 -0500 Subject: [PATCH] Revert "individual bug fix" This reverts commit af61433f9a868637951c03cfa44837ae98be7099. --- js/content.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/content.js b/js/content.js index 9947eb73..1f4cfa7d 100644 --- a/js/content.js +++ b/js/content.js @@ -217,12 +217,7 @@ function getCourseInfo(row) { /*Handle if on the individual course page, ie if the textbook button exists*/ if ($("#textbook_button").length) { coursename = $("#details h2").text(); - var gotname = $("table").find("td[data-th='Instructor']").text(); - if (gotname != "") { - profinit = $("table").find("td[data-th='Instructor']").text().split(", ")[1].substring(0, 1); - } else { - profinit = ""; - } + profinit = $("table").find("td[data-th='Instructor']").text().split(", ")[1].substring(0, 1); profurl = document.URL; console.log(profurl); }