mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
refactor: ui
This commit is contained in:
@@ -11,9 +11,7 @@ export class Registry {
|
||||
if (this.collection == null) {
|
||||
this.collection = {}
|
||||
}
|
||||
const className = target.name
|
||||
this.register(className, target)
|
||||
const defineName = target.define && target.define().name
|
||||
const defineName = (target.define && target.define().name) || target.name
|
||||
this.register(defineName, target)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user