Editor: added new favicon for PDF files

This commit is contained in:
Alexey Safronov 2024-01-29 15:48:57 +04:00
parent 2ec90add8d
commit a1fc8864b0
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ const isDesktopEditor = window["AscDesktopEditor"] !== undefined;
import PresentationIcoUrl from "PUBLIC_DIR/images/presentation.ico";
import SpreadSheetIcoUrl from "PUBLIC_DIR/images/spreadsheet.ico";
import TextIcoUrl from "PUBLIC_DIR/images/text.ico";
import PDFIcoUrl from "PUBLIC_DIR/images/pdf.ico";
const App = ({
initialLanguage,
@ -38,7 +39,7 @@ const App = ({
switch (rest?.config?.documentType) {
case "word":
icon = TextIcoUrl;
icon = rest?.config?.document?.fileType === "pdf" ? PDFIcoUrl : TextIcoUrl;
break;
case "slide":
icon = PresentationIcoUrl;

BIN
public/images/pdf.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB