Skip to content

Commit e9182c9

Browse files
committed
👔 update note header and call to use productname env if available
1 parent e17234a commit e9182c9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/util/call-comment.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
4449
export 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

4954
export function getCommentContent(note: string, locale: string) {

0 commit comments

Comments
 (0)