From e07201c485339e2b420e11d90be8b7437f63e5ce Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Thu, 14 Dec 2023 17:09:24 +0100 Subject: [PATCH] Removed unused code --- src/aai/aai.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/aai/aai.js b/src/aai/aai.js index df87b7d28b9..f7e9f48654d 100644 --- a/src/aai/aai.js +++ b/src/aai/aai.js @@ -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': @@ -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(); }