Don't touch the product name option for now
This commit is contained in:
parent
96de515e56
commit
c85d1c1d9c
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ import { useEffect } from "react";
|
||||||
|
|
||||||
export function usePageTitle(title: string): void {
|
export function usePageTitle(title: string): void {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const productName = "Element Call";
|
const productName = import.meta.env.VITE_PRODUCT_NAME || "Element Call";
|
||||||
document.title = title ? `${productName} | ${title}` : productName;
|
document.title = title ? `${productName} | ${title}` : productName;
|
||||||
}, [title]);
|
}, [title]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default defineConfig(({ mode }) => {
|
||||||
svgrPlugin(),
|
svgrPlugin(),
|
||||||
htmlTemplate.default({
|
htmlTemplate.default({
|
||||||
data: {
|
data: {
|
||||||
title: "Element Call",
|
env.VITE_PRODUCT_NAME || title: "Element Call",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue