initial
Some checks failed
Build and Release / build-and-release (push) Failing after 8s

This commit is contained in:
2026-05-28 15:03:31 +03:00
commit ce0d14bd77
9 changed files with 1537 additions and 0 deletions

24
dev/html/callback.html Normal file
View File

@@ -0,0 +1,24 @@
<!doctype html>
<html>
<head> </head>
<body>
<script>
const redirect_url = `"<<BUILDER_PHP_VAR($redirect_url)>>"`;
const send_url = `"<<BUILDER_PHP_VAR($send_url)>>"`;
const href = location.hash;
const token = location.hash.substring(
href.indexOf("access_token=") + 13,
href.indexOf("&"),
);
if (!token) {
window.location.href = redirect_url;
}
fetch(send_url + "&token=" + encodeURIComponent(token)).then(
(response) => {
window.location.href = redirect_url;
},
);
</script>
</body>
</html>