fixed connection check in public link of visual consoles
This commit is contained in:
parent
002509500c
commit
6ff11239e4
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
|
|
Loading…
Reference in New Issue