mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 22:47:04 +01:00
Update window open to reflect sametarget status
This commit is contained in:
parent
4fd984aca8
commit
2d5a5b5131
@ -2038,7 +2038,11 @@ var passedCookieTest = true; // If passed cross origin test
|
|||||||
|
|
||||||
$("#discordlogin_btn").click(function(e) {
|
$("#discordlogin_btn").click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var wid = window.open($("#discordlogin_btn").attr("href"), "_blank");
|
var target = "_blank";
|
||||||
|
if (getParameterByName("sametarget") == "true") {
|
||||||
|
target = "";
|
||||||
|
}
|
||||||
|
var wid = window.open($("#discordlogin_btn").attr("href"), target);
|
||||||
postRobot.on("setSession", { window: wid }, function(event) {
|
postRobot.on("setSession", { window: wid }, function(event) {
|
||||||
if (!passedCookieTest) {
|
if (!passedCookieTest) {
|
||||||
session = event.data.session;
|
session = event.data.session;
|
||||||
|
Loading…
Reference in New Issue
Block a user