diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 6a5f617..313b229 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -17,7 +17,7 @@ tauri-build = { version = "1.2.1", features = [] } [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -tauri = { version = "1.2.2", features = ["api-all", "devtools"] } +tauri = { version = "1.2.2", features = ["devtools", "http-all", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen"] } tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" } tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } portpicker = "0.1" # used in the example to pick a random free port diff --git a/src/App.jsx b/src/App.jsx index 94c8eca..6702e34 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -68,8 +68,8 @@ import { version as appVer } from "../package.json"; import { v4 as uuidv4 } from "uuid"; import { delServer, getServer } from "./utils/storage/servers.js"; import { delUser, getUser } from "./utils/storage/user.js"; -import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api.js"; -import { useQuery } from "@tanstack/react-query"; + +import axios from "axios"; const jellyfin = new Jellyfin({ clientInfo: { @@ -182,6 +182,7 @@ function App() { enqueueSnackbar("Unable to verfiy server address.", { variant: "error", }); + console.error(error); } }; @@ -243,13 +244,13 @@ function App() { if (reason && reason == "backdropClick") { return; } - let result = await relaunch(); + await relaunch(); }; const handleRemoveServer = async () => { await delServer(); await delUser(); - let result = await relaunch(); + await relaunch(); }; const location = useLocation();