refactor: drop eslint config love (#1341)

* Drop eslint config love

* More eqeqeq

* Even more
This commit is contained in:
Tony
2024-05-18 17:00:09 +08:00
committed by GitHub
parent d92a6f4439
commit e1d06b93b7
21 changed files with 32 additions and 60 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import { invoke } from "@tauri-apps/api/core";
function openLinks(): void {
document.querySelector("body")?.addEventListener("click", function (e) {
let target: HTMLElement | null = e.target as HTMLElement;
while (target != null) {
while (target) {
if (target.matches("a")) {
const t = target as HTMLAnchorElement;
if (
+1 -1
View File
@@ -1 +1 @@
!function(){"use strict";async function e(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}function t(){document.querySelector("body")?.addEventListener("click",(function(t){let n=t.target;for(;null!=n;){if(n.matches("a")){const r=n;""!==r.href&&["http://","https://","mailto:","tel:"].some((e=>r.href.startsWith(e)))&&"_blank"===r.target&&(e("plugin:shell|open",{path:r.href}),t.preventDefault());break}n=n.parentElement}}))}"function"==typeof SuppressedError&&SuppressedError,"complete"===document.readyState||"interactive"===document.readyState?t():window.addEventListener("DOMContentLoaded",t,!0)}();
!function(){"use strict";async function e(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}function t(){document.querySelector("body")?.addEventListener("click",(function(t){let n=t.target;for(;n;){if(n.matches("a")){const r=n;""!==r.href&&["http://","https://","mailto:","tel:"].some((e=>r.href.startsWith(e)))&&"_blank"===r.target&&(e("plugin:shell|open",{path:r.href}),t.preventDefault());break}n=n.parentElement}}))}"function"==typeof SuppressedError&&SuppressedError,"complete"===document.readyState||"interactive"===document.readyState?t():window.addEventListener("DOMContentLoaded",t,!0)}();