mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Ent 5824 connection lost warn mejora
This commit is contained in:
parent
e14c3f7dbd
commit
3327abc328
@ -1952,7 +1952,15 @@ function isReachable(url) {
|
|||||||
* Gets server origin url
|
* Gets server origin url
|
||||||
*/
|
*/
|
||||||
function getServerUrl() {
|
function getServerUrl() {
|
||||||
return $("#php_to_js_value_absolute_homeurl").val() || window.location.origin;
|
var server_url;
|
||||||
|
|
||||||
|
try {
|
||||||
|
server_url = get_php_value("homeurl");
|
||||||
|
} catch (SyntaxError) {
|
||||||
|
console.warn("Pandora homeurl cannot be found.");
|
||||||
|
server_url = window.location.origin + "/pandora_console";
|
||||||
|
}
|
||||||
|
return server_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user