mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Fix sametarget
This commit is contained in:
parent
2d5a5b5131
commit
94c5e5c91a
@ -2037,17 +2037,15 @@ var passedCookieTest = true; // If passed cross origin test
|
|||||||
}
|
}
|
||||||
|
|
||||||
$("#discordlogin_btn").click(function(e) {
|
$("#discordlogin_btn").click(function(e) {
|
||||||
e.preventDefault();
|
if (getParameterByName("sametarget") != "true") {
|
||||||
var target = "_blank";
|
e.preventDefault();
|
||||||
if (getParameterByName("sametarget") == "true") {
|
var wid = window.open($("#discordlogin_btn").attr("href"), "_blank");
|
||||||
target = "";
|
postRobot.on("setSession", { window: wid }, function(event) {
|
||||||
|
if (!passedCookieTest) {
|
||||||
|
session = event.data.session;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
var wid = window.open($("#discordlogin_btn").attr("href"), target);
|
|
||||||
postRobot.on("setSession", { window: wid }, function(event) {
|
|
||||||
if (!passedCookieTest) {
|
|
||||||
session = event.data.session;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
lock_login_fields();
|
lock_login_fields();
|
||||||
wait_for_discord_login();
|
wait_for_discord_login();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user