Skip to content

Commit bdf60ce

Browse files
committed
fix: initialize customHeadItems if not present
1 parent 21d0660 commit bdf60ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export default class CaptchaPlugin extends AdminForthPlugin {
3333
}
3434
});
3535

36+
if (!adminforth.config.customization?.customHeadItems) {
37+
adminforth.config.customization.customHeadItems = [];
38+
}
3639
adminforth.config.customization.customHeadItems.push(
3740
{
3841
tagName: 'script',

0 commit comments

Comments
 (0)