mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user