options and more

This commit is contained in:
Sriram Hariharan
2018-07-18 20:07:08 -05:00
parent 5e39221c2c
commit 73cbbd1cfb
6 changed files with 107 additions and 71 deletions

View File

@@ -37,6 +37,9 @@ chrome.runtime.onInstalled.addListener(function() {
chrome.storage.sync.set({savedCourses: arr}, function() {
console.log('initial course list');
});
chrome.storage.sync.set({courseConflictHighlight: true}, function() {
console.log('initial highlighting: true');
});
});
/* Find all the conflicts in the courses and send them out/ if there is even a conflict*/
@@ -119,7 +122,6 @@ function remove(request, sender, sendResponse) {
var courses = data.savedCourses;
console.log(courses);
var index = 0;
console.log(courses.length);
while(index<courses.length && courses[index].unique != request.course.unique){
index++;
}