Skip to content

Commit

Permalink
Merge pull request #100 from UrbanOS-Public/1174-custom-favicon
Browse files Browse the repository at this point in the history
1174 custom favicon
  • Loading branch information
ian-j-abbott-accenture authored May 11, 2023
2 parents 90d01aa + d33471c commit d31cc49
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ window.AUTH0_CLIENT_ID = 'SHqaonqYEYiS4El57rGHplqLMG00pQKR'
window.AUTH0_AUDIENCE = 'discovery_api'
window.REQUIRE_API_KEY = 'false'
window.REGENERATE_API_KEY_FF = 'true'
window.PRIMARY_COLOR = '#28807C'
window.CUSTOM_FAV_ICON_URL = 'https://michigan.gov/favicon.ico'
window.PRIMARY_COLOR = '#28807C'
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discovery_ui",
"version": "2.1.40",
"version": "2.1.41",
"description": "UI for dataset discovery",
"main": "./src/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/HelmetStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class HelmetStyles extends Component {
render() {
return (
<Helmet>
<link href={`"${window.CUSTOM_FAV_ICON_URL}"`} rel="icon" type="image/x-icon" />
{window.CUSTOM_FAV_ICON_URL && (<link href={`${window.CUSTOM_FAV_ICON_URL}`} rel="icon" type="image/x-icon" />)}
<title>{`${window.HEADER_TITLE}`}</title>
<style type="text/css">{`
content {
Expand Down

0 comments on commit d31cc49

Please sign in to comment.