@@ -200,28 +200,6 @@ async function addCompaniesToSelect() {
200
200
}
201
201
} ) ;
202
202
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
-
225
203
companySearch . addEventListener ( 'keydown' , ( event ) => {
226
204
if ( event . key === 'Enter' ) {
227
205
const selectedCompany = companySearch . value ;
@@ -241,14 +219,6 @@ async function addCompaniesToSelect() {
241
219
option . value = company ;
242
220
companyList . appendChild ( option ) ;
243
221
} ) ;
244
-
245
- companySelect . addEventListener ( 'change' , ( ) => {
246
- chrome . storage . local . set ( { clickedCompany : companySelect . value } , ( ) => {
247
- location . reload ( ) ;
248
- } ) ;
249
- } ) ;
250
-
251
- companySelect . style . maxHeight = '500px' ;
252
222
}
253
223
254
224
// Keep track of the sorting order for each column
0 commit comments