Upgrade eslint and vite.

This commit is contained in:
Kavin
2026-03-27 02:42:49 +05:30
parent dead2b023a
commit 82c7062de7
11 changed files with 510 additions and 643 deletions

View File

@@ -170,7 +170,7 @@ function importSubscriptionsLocally(newChannels) {
subs.sort();
try {
localStorage.setItem("localSubscriptions", JSON.stringify(subs));
} catch (e) {
} catch {
alert(t("info.local_storage"));
}
}

View File

@@ -600,7 +600,7 @@ onMounted(async () => {
countryMap.value = await import(`../utils/CountryMaps/${selectedLanguage.value}.json`).then(
val => val.default,
);
} catch (e) {
} catch {
console.error("Countries not translated into " + selectedLanguage.value);
}
}

View File

@@ -105,7 +105,7 @@ async function copyURL(mytext) {
try {
await navigator.clipboard.writeText(mytext);
alert(t("info.copied"));
} catch ($e) {
} catch {
alert(t("info.cannot_copy"));
}
}

View File

@@ -181,7 +181,7 @@ function setSpeedFromInput() {
try {
const newSpeed = Number(playbackSpeedInput.value);
adjustPlaybackSpeed(newSpeed);
} catch (err) {
} catch {
alert(t("actions.invalid_input"));
}
showSpeedModal.value = false;

View File

@@ -1,5 +1,3 @@
/* eslint-disable no-console */
import { registerSW } from "virtual:pwa-register";
if (process.env.NODE_ENV === "production") {