mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
Basic search engine shit
This commit is contained in:
parent
b0ed0359a9
commit
6372debdff
7 changed files with 21 additions and 119 deletions
|
@ -15,12 +15,13 @@ export function ProxyFrame(props: { url: string }) {
|
|||
// pass the URL encoded with encodeURIcomponent
|
||||
const localProxy = localStorage.getItem("proxy") || "automatic";
|
||||
const proxyMode = localStorage.getItem("proxyMode") || "direct";
|
||||
|
||||
const searchEngine =
|
||||
localStorage.getItem("searchEngine") || "https://google.com/search?q=%s";
|
||||
const [ProxiedUrl, setProxiedUrl] = useState<string | undefined>(undefined);
|
||||
|
||||
let decodedUrl = decodeURIComponent(props.url);
|
||||
//attempt to convert to a valid url
|
||||
decodedUrl = searchUtil(decodedUrl, "https://google.com/search?q=%s");
|
||||
decodedUrl = searchUtil(decodedUrl, searchEngine);
|
||||
|
||||
let proxyRef;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue