Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/static/src/favicons.tsx
7073 views
1
// Specify the favicon.
2
3
import { Helmet } from "react-helmet";
4
import { join } from "path";
5
import { appBasePath } from "@cocalc/frontend/customize/app-base-path";
6
import useCustomize from "./customize";
7
8
export default function LoadFavicons() {
9
const customize = useCustomize();
10
11
return (
12
<Helmet>
13
<link
14
rel="icon"
15
href={
16
customize.logo_square
17
? customize.logo_square
18
: join(appBasePath, "webapp/favicon.ico")
19
}
20
/>
21
</Helmet>
22
);
23
}
24
25