Skip to content

Commit

Permalink
Remove unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kimhyun5u committed Mar 9, 2023
1 parent 1efef83 commit ddd5b5a
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as htmlParser from "./htmlParser.js";

const univURL = `http://www.jbnu.ac.kr/kor/?menuID=139`;
let selectedKeyword = '';
let myFile = {};
let noticeList = [];
let keywordNoticeList = {};

Expand Down Expand Up @@ -200,31 +199,6 @@ async function getRecentNotices() {
}
}

function updateCheckBoxEventListener() {

let checkBoxes = document.getElementsByClassName("check-box");

for (let checkBox of checkBoxes) {
checkBox.addEventListener('change', () => {
if (checkBox.checked) {
const key = checkBox.parentElement.parentElement.children[1].textContent;
const keyValue = {};
keyValue[key] = true;
// save local storage
chrome.storage.local.set(keyValue, () => {
console.log(keyValue);
});
} else {
const key = checkBox.parentElement.parentElement.children[1].textContent;
const keyValue = {};
keyValue[key] = false;
// save local storage
chrome.storage.local.set(keyValue);
}
});
}
}

// 키워드 추가 버튼 동작
let keywordInputGroup = document.getElementById('keywordInputGroup');
let keywordAddBtn = document.getElementById('keywordAddBtn');
Expand Down

0 comments on commit ddd5b5a

Please sign in to comment.