File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ export function getCommentSubject(
1818 ? "incoming"
1919 : "outgoing" ;
2020
21- const titleEndGerman = `${ directionString } Anruf (CLINQ )` ;
22- const titleEndEnglish = `${ directionString } Call (CLINQ )` ;
21+ const titleEndGerman = `${ directionString } Anruf (${ getProductName ( ) } )` ;
22+ const titleEndEnglish = `${ directionString } Call (${ getProductName ( ) } )` ;
2323
2424 switch ( state ) {
2525 case CallState . CONNECTED :
@@ -41,9 +41,14 @@ export function getCommentSubject(
4141 }
4242}
4343
44+ function getProductName ( ) {
45+ const productName = process . env . PRODUCT_NAME ;
46+ return productName || "CLINQ" ;
47+ }
48+
4449export function getCommentHeader ( locale : string ) {
4550 const isGerman = locale . startsWith ( "de" ) ;
46- return `<h1>${ isGerman ? "Notizen" : "Note" } (CLINQ ):</h1>` ;
51+ return `<h1>${ isGerman ? "Notizen" : "Note" } (${ getProductName ( ) } ):</h1>` ;
4752}
4853
4954export function getCommentContent ( note : string , locale : string ) {
You can’t perform that action at this time.
0 commit comments