mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
favicon: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
ceb9367bc4
commit
30d8ba591a
@@ -4,7 +4,7 @@ import static_favicon_image from "../../static/images/favicon.svg";
|
|||||||
import render_favicon_svg from "../templates/favicon.svg.hbs";
|
import render_favicon_svg from "../templates/favicon.svg.hbs";
|
||||||
|
|
||||||
import * as blueslip from "./blueslip.ts";
|
import * as blueslip from "./blueslip.ts";
|
||||||
import favicon_font_url from "./favicon_font_url!=!url-loader!font-subset-loader2?glyphs=0123456789KMGT∞!source-sans/TTF/SourceSans3-Bold.ttf"; // eslint-disable-line import/extensions
|
import favicon_font_url_html from "./favicon_font_url!=!url-loader!font-subset-loader2?glyphs=0123456789KMGT∞!source-sans/TTF/SourceSans3-Bold.ttf"; // eslint-disable-line import/extensions
|
||||||
|
|
||||||
let favicon_state: {image: HTMLImageElement; url: string} | undefined;
|
let favicon_state: {image: HTMLImageElement; url: string} | undefined;
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ export function update_favicon(new_message_count: number, pm_count: number): voi
|
|||||||
count,
|
count,
|
||||||
count_long,
|
count_long,
|
||||||
have_pm: pm_count !== 0,
|
have_pm: pm_count !== 0,
|
||||||
favicon_font_url,
|
favicon_font_url_html,
|
||||||
});
|
});
|
||||||
|
|
||||||
load_and_set_favicon(rendered_favicon);
|
load_and_set_favicon(rendered_favicon);
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
font-family: 'Source Sans 3';
|
font-family: 'Source Sans 3';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: url({{{favicon_font_url}}}) format('truetype');
|
src: url({{{favicon_font_url_html}}}) format('truetype');
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<linearGradient id="a" x1="0" y1="0" x2="0" y2="1">
|
<linearGradient id="a" x1="0" y1="0" x2="0" y2="1">
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Reference in New Issue
Block a user