mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
Search engines
This commit is contained in:
parent
04cf73e84a
commit
e14f84d1bb
5 changed files with 31 additions and 2 deletions
|
@ -20,12 +20,14 @@ export function ProxyFrame(props: { url: string }) {
|
|||
// pass the URL encoded with encodeURIcomponent
|
||||
const localProxy = localStorage.getItem("proxy") || "automatic";
|
||||
const proxyMode = localStorage.getItem("proxyMode") || "embed";
|
||||
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