Skip to content

Commit

Permalink
Clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
Josephine-Chen committed Mar 9, 2017
1 parent b0d8263 commit 13939ab
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 67 deletions.
1 change: 1 addition & 0 deletions client/src/components/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class Dashboard extends React.Component {
});
this.getAllGoals();
this.getBlacklist();
this.getExtensionData();
this.callCustomJQuery();
}

Expand Down
10 changes: 0 additions & 10 deletions extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
//Check edge cases

//Clearing data
//Clear data every 24 hours at midnight
//chrome.alarms.create("midnightClearStats", {when: new Date().setHours(0), periodInMinutes: 1440});
//Clear all notifications every 24 hours at midnight
chrome.alarms.create("clearNotifications", {when: new Date().setHours(0), periodInMinutes: 1440});

//For testing:
//chrome.alarms.create("clearNotifications", {periodInMinutes: 1});

//Send information to app every half hour
chrome.alarms.create("updateApp", {periodInMinutes: 30});

Expand All @@ -30,11 +25,6 @@ chrome.alarms.onAlarm.addListener(function(alarm) {
console.log('update warn time');
localStorage.warn = JSON.stringify(warn);
}
// if (alarm.name === "midnightClearStats") {
// console.log('now clearing stats');
// var oldSites = new Sites(config);
// oldSites.clear();
// }
});

function sendAppStats() {
Expand Down
55 changes: 0 additions & 55 deletions extension/content.js

This file was deleted.

Binary file added extension/ic_close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion extension/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ function updateBlacklist(){
}
});
console.log('blacklist', blacklist);
//localStorage.blacklist = JSON.stringify(data.data);
// Store all sites to blackout inside localStorage.blackout
// Store all sites to block after certain time inside localStorage.block
// Store all sites to warn after certain time inside localStorage.warn
Expand Down
2 changes: 1 addition & 1 deletion extension/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function addLocalDisplay() {
row = document.createElement("tr");
cell = document.createElement("td");
var removeImage = document.createElement("img");
removeImage.src = chrome.extension.getURL("images/remove.png");
removeImage.src = chrome.extension.getURL("ic_close.png");
removeImage.title = "Remove and stop tracking.";
removeImage.width = 10;
removeImage.height = 10;
Expand Down

0 comments on commit 13939ab

Please sign in to comment.