Socialify

Folder ..

Viewing action.html
24 lines (25 loc) • 880.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NeoTalk Auth Callback Handler</title>
</head>
<body>
    <script>
        // Get all URL parameters
        const urlParams = new URLSearchParams(window.location.search);
        let forwardingURL = `https://neocitiestalk.firebaseapp.com/__/auth/action?`;
        // Loop through all URL parameters
        for (const [key, value] of urlParams) {
            // add all parameters to forwardingURL
            forwardingURL += `${key}=${value}&`;
        }
        // Remove the last & from forwardingURL
        forwardingURL = forwardingURL.slice(0, -1);
        // Redirect to forwardingURL
        window.location.href = forwardingURL;
    </script>
</body>
</html>