Skip to content

Commit 2e36a48

Browse files
committed
rm unused code
1 parent d881e0e commit 2e36a48

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/problems-by-company/company.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -200,28 +200,6 @@ async function addCompaniesToSelect() {
200200
}
201201
});
202202

203-
// Add event listener to the search input
204-
companySearch.addEventListener('input', () => {
205-
// Get the search term
206-
const searchTerm = companySearch.value.trim().toLowerCase();
207-
208-
// Clear the existing options
209-
companySelect.innerHTML = '';
210-
211-
// Filter and add the options based on the search term
212-
sortedCompanies.forEach((company) => {
213-
if (company.toLowerCase().includes(searchTerm)) {
214-
const option = document.createElement('option');
215-
option.value = company;
216-
option.text = company;
217-
if (company === companyName) {
218-
option.selected = true;
219-
}
220-
companySelect.appendChild(option);
221-
}
222-
});
223-
});
224-
225203
companySearch.addEventListener('keydown', (event) => {
226204
if (event.key === 'Enter') {
227205
const selectedCompany = companySearch.value;
@@ -241,14 +219,6 @@ async function addCompaniesToSelect() {
241219
option.value = company;
242220
companyList.appendChild(option);
243221
});
244-
245-
companySelect.addEventListener('change', () => {
246-
chrome.storage.local.set({ clickedCompany: companySelect.value }, () => {
247-
location.reload();
248-
});
249-
});
250-
251-
companySelect.style.maxHeight = '500px';
252222
}
253223

254224
// Keep track of the sorting order for each column

0 commit comments

Comments
 (0)