mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-14 09:05:06 +01:00
Fix workers test page not using the actual proxy workers
This commit is contained in:
parent
81e70030c9
commit
0ef33ccd44
@ -8,7 +8,7 @@ import { Icon, Icons } from "@/components/Icon";
|
|||||||
import { Box } from "@/components/layout/Box";
|
import { Box } from "@/components/layout/Box";
|
||||||
import { Divider } from "@/components/utils/Divider";
|
import { Divider } from "@/components/utils/Divider";
|
||||||
import { Heading2 } from "@/components/utils/Text";
|
import { Heading2 } from "@/components/utils/Text";
|
||||||
import { conf } from "@/setup/config";
|
import { getProxyUrls } from "@/utils/proxyUrls";
|
||||||
|
|
||||||
export function WorkerItem(props: {
|
export function WorkerItem(props: {
|
||||||
name: string;
|
name: string;
|
||||||
@ -43,7 +43,7 @@ export function WorkerItem(props: {
|
|||||||
|
|
||||||
export function WorkerTestPart() {
|
export function WorkerTestPart() {
|
||||||
const workerList = useMemo(() => {
|
const workerList = useMemo(() => {
|
||||||
return conf().PROXY_URLS.map((v, ind) => ({
|
return getProxyUrls().map((v, ind) => ({
|
||||||
id: ind.toString(),
|
id: ind.toString(),
|
||||||
url: v,
|
url: v,
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user