diff --git a/components/AppShelf/AppShelf.tsx b/components/AppShelf/AppShelf.tsx index 509d3f676..fb0b23f7e 100644 --- a/components/AppShelf/AppShelf.tsx +++ b/components/AppShelf/AppShelf.tsx @@ -11,7 +11,6 @@ import { Space, } from '@mantine/core'; import { useConfig } from '../../tools/state'; -import { pingQbittorrent } from '../../tools/api'; import { serviceItem } from '../../tools/types'; import AddItemShelfItem from './AddAppShelfItem'; import { AppShelfItemWrapper } from './AppShelfItemWrapper'; @@ -27,13 +26,6 @@ const AppShelf = (props: any) => { setConfig(JSON.parse(localConfig)); } }, []); - if (config.services && config.services.length === 0) { - config.services.forEach((service) => { - if (service.type === 'qBittorrent') { - pingQbittorrent(service); - } - }); - } return ( diff --git a/tools/api.ts b/tools/api.ts deleted file mode 100644 index 49e7df775..000000000 --- a/tools/api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { serviceItem } from './types'; - -export function pingQbittorrent(service: serviceItem): any { - console.log('Getting service.cookie for service: ', service); - if (!service.cookie) service.cookie = 'Test'; - else console.log(service.cookie); -}