Skip to content

Commit 31c62ea

Browse files
authored
Merge pull request #282 from devforth/AdminForth/676
feat: add ability to add cutoms items to head
2 parents 6cf2d98 + 9a02564 commit 31c62ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

adminforth/documentation/docs/tutorial/03-Customization/01-branding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ auth: {
183183
//diff-add
184184
removeBackgroundBlendMode: true,
185185
}
186+
186187
```
187188

188189
## Custom items in html head

adminforth/modules/codeInjector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ class CodeInjector implements ICodeInjector {
553553
const attrs = Object.entries(attributes)
554554
.map(([key, value]) => `${key}="${value}"`)
555555
.join(' ');
556-
const isVoid = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr'].includes(tagName);
556+
const isVoid = ['base', 'link', 'meta'].includes(tagName);
557557
return isVoid
558558
? `<${tagName} ${attrs}>`
559559
: `<${tagName} ${attrs}></${tagName}>`;

0 commit comments

Comments
 (0)