From 4b1ab310b797c669245195b55e7f7d311280d96c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 10 Jun 2021 22:51:29 -0600 Subject: [PATCH] Remove the login.php code as it breaks the destinations and not needed for this. Retract changes from this pull request. Its not constantly refreshing and so this login check is not needed for this feature. https://github.com/fusionpbx/fusionpbx/pull/5951 --- app/destinations/resources/classes/destinations.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 97fe5292f7..38db669146 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -440,12 +440,6 @@ if (!class_exists('destinations')) { //alert(action); var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { - var url = new URL(this.xmlHttp.responseURL); - if (/login\.php$/.test(url.pathname)) { - // You are logged out. Not much we can de here. - return; - } - if (this.readyState == 4 && this.status == 200) { document.getElementById(id).innerHTML = this.responseText; }