Skip to content

Commit

Permalink
fix notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
dchicchon committed Dec 12, 2022
1 parent 87f40cd commit e197f7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,11 @@ chrome.contextMenus.onClicked.addListener(function (result) {
* @param {string} id notification id
*/
const handleNotification = (id) => {
console.info('handleNotification')
console.info({ id });
// get the current date. be sure to replace all
let dateStamp = new Date().toLocaleDateString("en-US").replaceAll('_', '/');
let dateStamp = new Date().toLocaleDateString("en-US").replaceAll('/', '_');
console.info({ dateStamp });
chrome.storage.sync.get([dateStamp], (result) => {
console.info({ result })
let entries = result[dateStamp];
Expand Down
1 change: 0 additions & 1 deletion src/components/Entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ export default {
return this.mode === "edit" ? "show" : "no-show";
},
},
colorOptions: {
get() {
return ["blue", "green", "gold", "purple", "orange", "red"];
Expand Down
3 changes: 0 additions & 3 deletions src/components/Month.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default {
},
created() {
console.log("on mount");
this.createWeekdays();
},
Expand All @@ -59,7 +58,6 @@ export default {
this.date = changeDate;
},
createWeekdays() {
console.log("Create weekdays");
let startDate = new Date(this.date);
// This is how we set it to sunday
const days = [];
Expand All @@ -75,7 +73,6 @@ export default {
startDate.setDate(startDate.getDate() + 1);
}
this.weekdays = days;
console.log(this.weekdays);
},
},
computed: {
Expand Down

0 comments on commit e197f7d

Please sign in to comment.