mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
fixed remove from exceptions button
This commit is contained in:
@@ -957,9 +957,9 @@ export class PopupController {
|
||||
});
|
||||
|
||||
document.getElementById('exceptionsList')?.addEventListener('click', async (e) => {
|
||||
const target = e.target as HTMLElement;
|
||||
if (target.classList.contains('exception-remove')) {
|
||||
const domain = target.dataset.domain!;
|
||||
const button = (e.target as HTMLElement).closest('.exception-remove');
|
||||
if (button) {
|
||||
const domain = (button as HTMLElement).dataset.domain!;
|
||||
this.exceptionsList = this.exceptionsList.filter(d => d !== domain);
|
||||
this.updateExceptionButton();
|
||||
this.renderExceptions();
|
||||
|
||||
Reference in New Issue
Block a user