Skip to content

Commit

Permalink
favicon working in chrome (#2542)
Browse files Browse the repository at this point in the history
  • Loading branch information
GraysonNull committed Feb 23, 2022
1 parent b807d7c commit 4e446b0
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions web/src/Root.jsx
Expand Up @@ -323,8 +323,8 @@ class Root extends PureComponent {
<meta httpEquiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta httpEquiv="Pragma" content="no-cache" />
<meta httpEquiv="Expires" content="0" />
{this.state.appLogo &&
<link rel="shortcut icon" href={this.state.appLogo} />
{this.state.appLogo &&
<link rel="icon" type="image/png" href={this.state.appLogo} />
}
</Helmet>
<ThemeContext.Provider value={{
Expand Down
Binary file added web/src/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/src/favicon-64.png
Binary file not shown.
Binary file modified web/src/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions web/src/index.ejs
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="icon" type="image/png" href="./favicon-32x32.png" data-react-helmet="true" />
</head>
<body>
<div id="app"></div>
Expand Down
16 changes: 0 additions & 16 deletions web/webpack.config.js
Expand Up @@ -2,7 +2,6 @@ const path = require("path");
const { merge } = require("webpack-merge");
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
Expand Down Expand Up @@ -125,21 +124,6 @@ module.exports = function (env) {
title: "Admin Console",
inject: "body",
}),
new FaviconsWebpackPlugin({
logo: srcPath + "/favicon-64.png",
icons: {
android: false,
appleIcon: false,
appleStartup: false,
coast: false,
favicons: true,
firefox: true,
opengraph: false,
twitter: false,
yandex: false,
windows: false
}
}),
new MonacoWebpackPlugin({
languages: [
"yaml",
Expand Down

0 comments on commit 4e446b0

Please sign in to comment.