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
This commit is contained in:
FusionPBX
2021-06-10 22:51:29 -06:00
committed by GitHub
parent 398610cf25
commit 4b1ab310b7

View File

@@ -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;
}