mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-03-29 20:06:58 +00:00
Upgrade eslint and vite.
This commit is contained in:
@@ -170,7 +170,7 @@ function importSubscriptionsLocally(newChannels) {
|
||||
subs.sort();
|
||||
try {
|
||||
localStorage.setItem("localSubscriptions", JSON.stringify(subs));
|
||||
} catch (e) {
|
||||
} catch {
|
||||
alert(t("info.local_storage"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
import { registerSW } from "virtual:pwa-register";
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
|
||||
Reference in New Issue
Block a user