Web: Doceditor: fixed initialtab title

This commit is contained in:
Artem Tarasov 2022-03-14 15:41:35 +03:00
parent 69a2e81de6
commit de71c6a1c6
3 changed files with 3 additions and 9 deletions

View File

@ -419,7 +419,6 @@ export default function Editor({
} else {
title = organizationName;
}
console.log("setDocumentTitle", title);
document.title = title;
setNewDocumentTitle(title);
}; //+++
@ -613,10 +612,7 @@ export default function Editor({
};
const SharingDialog = renderSharing();
/* <Head>
<title>{documentTitle}</title>
<link id="favicon" rel="shortcut icon" href={faviconHref} />
</Head> */
return (
<EditorWrapper isVisibleSharingDialog={isVisible}>
{needLoader ? (

View File

@ -5,9 +5,7 @@ import render from "./server/render";
import i18nextMiddleware from "i18next-express-middleware";
import i18next from "i18next";
import Backend from "i18next-node-fs-backend";
import pkg from "../package.json";
const { title } = pkg;
const app = express();
const port = process.env.PORT || 5013;
@ -60,7 +58,6 @@ app.get("/products/files/doceditor", async (req, res) => {
});
const response = template(
title,
props,
content,
styleTags,

View File

@ -1,7 +1,7 @@
import { getFavicon } from "../helpers/utils";
import pkg from "../../package.json";
export default function template(
title,
initialState = {},
content = "",
styleTags,
@ -9,6 +9,7 @@ export default function template(
initialI18nStore,
initialLanguage
) {
const { title } = pkg;
const { docApiUrl } = initialState;
const faviconHref = getFavicon(initialState?.config?.documentType);