Skip to content

Commit 9badbe2

Browse files
authored
Merge pull request #1513 from jeanmi151/favicon_meta-editor
Remove static favicon to let config default.toml set it
2 parents 023c4f0 + 1aa8688 commit 9badbe2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
import { Component } from '@angular/core'
1+
import { Component, OnInit } from '@angular/core'
2+
import { ThemeService } from '@geonetwork-ui/util/shared'
3+
import { getThemeConfig } from '@geonetwork-ui/util/app-config'
24

35
@Component({
46
selector: 'md-editor-root',
57
templateUrl: './app.component.html',
68
styleUrls: ['./app.component.css'],
79
standalone: false,
810
})
9-
export class AppComponent {
11+
export class AppComponent implements OnInit {
1012
title = 'metadata-editor'
13+
14+
ngOnInit(): void {
15+
const favicon = getThemeConfig().FAVICON
16+
if (favicon) ThemeService.setFavicon(favicon)
17+
}
1118
}

apps/metadata-editor/src/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<title>MetadataEditor</title>
66
<base href="/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
98
<link rel="stylesheet" href="assets/css/materials-symbols-outline.css" />
109
<link
1110
rel="preload"

0 commit comments

Comments
 (0)