fixed connection check in public link of visual consoles

This commit is contained in:
alejandro-campos 2020-10-26 14:44:05 +01:00
parent 002509500c
commit 6ff11239e4
2 changed files with 3 additions and 1 deletions

View File

@ -2024,7 +2024,7 @@ function getServerUrl() {
server_url = get_php_value("homeurl");
} catch (SyntaxError) {
console.warn("Pandora homeurl cannot be found.");
server_url = window.location.origin + "/pandora_console";
server_url = $("#hidden-homeurl").val();
}
return server_url;
}

View File

@ -31,6 +31,8 @@ require_once $config['homedir'].'/vendor/autoload.php';
ui_require_css_file('visual_maps');
ui_require_css_file('register');
html_print_input_hidden('homeurl', $config['homeurl']);
// Connection lost alert.
$conn_title = __('Connection with server has been lost');
$conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.');