can export calendar into ics file, still having issues with mac recurring

This commit is contained in:
sghsri
2018-12-11 19:42:07 -06:00
parent 0eb7c9b949
commit 0a327de5f9
3 changed files with 65 additions and 39 deletions

View File

@@ -41,18 +41,25 @@ chrome.runtime.onMessage.addListener(function (request, sender, response) {
/* Initially set the course data in storage */
chrome.runtime.onInstalled.addListener(function (details) {
if (details.reason == "install" || details.reason == "update") {
var arr = new Array();
chrome.storage.sync.set({
savedCourses: arr
}, function () {
console.log('initial course list');
});
chrome.storage.sync.set({
courseConflictHighlight: true
}, function () {
console.log('initial highlighting: true');
if (details.reason == "install") {
chrome.storage.sync.get('savedCourses', function(data){
if(!data.savedCourses){
console.log(data.savedCourses);
var arr = new Array();
chrome.storage.sync.set({
savedCourses: arr
}, function () {
console.log('initial course list');
});
chrome.storage.sync.set({
courseConflictHighlight: true
}, function () {
console.log('initial highlighting: true');
});
}
});
} else if(details.reason == "update"){
console.log("updated");
}
});