Updates for the browser title. Wrapping up for the day! July 4th week!
This commit is contained in:
@@ -139,6 +139,7 @@ let events_local_data_struct: key_val = {
|
||||
// show_content__presenter_start: false,
|
||||
show_content__session_help: true,
|
||||
show_content__session_search_help: true,
|
||||
show_content__presenter_page_help: true,
|
||||
|
||||
disable_submit__opt_out: true,
|
||||
submit_status__opt_out: null,
|
||||
|
||||
@@ -391,6 +391,7 @@ function to_title_case (text_string) {
|
||||
|
||||
|
||||
// Updated 2024-06-19
|
||||
// This function behaves weirdly. It needs to be reviewed and updated.
|
||||
export let shorten_string = function shorten_string(
|
||||
{
|
||||
string,
|
||||
@@ -399,7 +400,7 @@ export let shorten_string = function shorten_string(
|
||||
end_length=5,
|
||||
wildcard_length=3
|
||||
}: {
|
||||
string: string,
|
||||
string: undefined|string,
|
||||
max_length?: number,
|
||||
begin_length?: number,
|
||||
end_length?: number,
|
||||
@@ -410,7 +411,8 @@ export let shorten_string = function shorten_string(
|
||||
|
||||
if (!string || typeof string != 'string') {
|
||||
console.log('Invalid string value passed');
|
||||
return false;
|
||||
// return false;
|
||||
return '';
|
||||
}
|
||||
|
||||
// NOTE: max_length is not the actual end result length. The actual max will be 45 characters.
|
||||
|
||||
Reference in New Issue
Block a user