Skip to content

Commit af3d320

Browse files
committed
fix: make AdminForth instance single, also export global.adminforth so any code can use it at global level, adminforth instance is single in node environment
1 parent 23c3a45 commit af3d320

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adminforth/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ class AdminForth implements IAdminForth {
145145

146146

147147
console.log(`${this.formatAdminForth()} v${ADMINFORTH_VERSION} initializing...`);
148+
global.adminforth = this;
148149
}
149150

150151
formatAdminForth() {

0 commit comments

Comments
 (0)