diff --git a/index.html b/index.html index 22ca66a..3ceea76 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@
+ + diff --git a/src/pages/Settings/Dropdown.tsx b/src/pages/Settings/Dropdown.tsx index 0c5f86d..7a366c2 100644 --- a/src/pages/Settings/Dropdown.tsx +++ b/src/pages/Settings/Dropdown.tsx @@ -9,7 +9,7 @@ interface Option { const Dropdown = ({ storageKey, options, - refresh + refresh, }: { storageKey: string; options: Option[]; diff --git a/src/pages/Settings/Proxy.tsx b/src/pages/Settings/Proxy.tsx index 8f23109..5e0a831 100644 --- a/src/pages/Settings/Proxy.tsx +++ b/src/pages/Settings/Proxy.tsx @@ -2,7 +2,9 @@ import { motion } from "framer-motion"; import { tabContentVariant, settingsPageVariant } from "./Variants"; import Dropdown from "./Dropdown"; import BareInput from "./BareInput"; +import WispInput from "./WispInput"; import ProxyInput from "./ProxyInput"; +import { changeTransport } from "../../util/transports"; import { useTranslation } from "react-i18next"; const Proxy = ({ id, active }) => { @@ -27,6 +29,12 @@ const Proxy = ({ id, active }) => { { id: "https://bing.com/search?q=%s", label: "Bing" } ]; + const wispUrl = (location.protocol === "https:" ? "wss://" : "ws://") + location.host + "/wisp/"; + //libcurl can be added here when it's stable + const transports = [ + { id: "epoxy", label: "Epoxy" } + ]; + return (