mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
simple form submission
This commit is contained in:
parent
4f13c42b6e
commit
b499f73db6
2 changed files with 29 additions and 16 deletions
|
@ -7,11 +7,11 @@ export function ProxyFrame(props: { url: string }) { // pass the URL encoded wit
|
|||
|
||||
var decodedUrl = decodeURIComponent(props.url);
|
||||
|
||||
useEffect(() => {
|
||||
useEffect(() => { // For now we can redirect to the results. In the future we will add an if statement looking for the users proxy display choice
|
||||
if (localProxy === "rammerhead") {
|
||||
RammerheadEncode(decodedUrl).then((result: string) => {
|
||||
console.log("ProxyHref inside:", result);
|
||||
setProxiedUrl(result);
|
||||
window.location.href = result;
|
||||
});
|
||||
}
|
||||
}, [localProxy]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue