mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to correctly pass screen reader option to Terminal
This commit is contained in:
@@ -71,7 +71,8 @@ if ($conf_cols_n && $conf_rows_n && !$xmlhr) {
|
||||
}
|
||||
|
||||
# Define columns and rows
|
||||
$termjs_opts{'Options'} = "{ cols: $env_cols, rows: $env_rows, screenReaderMode: $config{'screen_reader'} || false }";
|
||||
my $conf_screen_reader = $config{'screen_reader'} eq 'true' ? 'true' : 'false';
|
||||
$termjs_opts{'Options'} = "{ cols: $env_cols, rows: $env_rows, screenReaderMode: $conf_screen_reader }";
|
||||
|
||||
my $term_size = "
|
||||
min-width: ".($conf_cols_n ? "".($conf_cols_n * 9)."px" : "calc(100vw - 22px)").";
|
||||
|
||||
Reference in New Issue
Block a user