Skip to content

Commit

Permalink
Remove unneeded PointerEvent check in _onRecommendedImportClick (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored Aug 25, 2024
1 parent a6e3099 commit 891a73f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/js/pages/settings/dictionary-import-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export class DictionaryImportController {
* @param {MouseEvent} e
*/
async _onRecommendedImportClick(e) {
if (!(e instanceof PointerEvent)) { return; }
if (!e.target || !(e.target instanceof HTMLButtonElement)) { return; }

const import_url = e.target.attributes.getNamedItem('data-import-url');
Expand Down

0 comments on commit 891a73f

Please sign in to comment.