Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Dec 14, 2023
1 parent 9b72d2a commit e07201c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/aai/aai.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
case 'local':
// DiscoJuice.UI.setScreen(opts.localauth);
// jQuery('input#login').focus();

window.location = window.location.origin + (namespace === '' ? namespace : '/' + namespace) + "/login?redirectUrl=" + window.location.href;
break;
//case 'saml':
Expand All @@ -98,22 +97,6 @@
};
}

function getCookie(name) {
var cookies = document.cookie.split(';');

for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i].trim();
// Check if this cookie has the specified name
if (cookie.startsWith(name + '=')) {
// Extract and return the cookie value
return cookie.substring(name.length + 1);
}
}

// Return null if the cookie with the specified name is not found
return null;
}

if (!window.aai) {
window.aai = new AAI();
}
Expand Down

0 comments on commit e07201c

Please sign in to comment.