give time for extension to add hook.

This commit is contained in:
Rintim 2023-09-07 23:23:54 +08:00
parent a9d10ba774
commit 805848568d
1 changed files with 6 additions and 4 deletions

View File

@ -32241,11 +32241,13 @@
lib.group.add(id);
if(short)lib.translate[id] = short;
if(name)lib.translate[`${id}2`] = name;
for(const hook of lib.hooks.addGroup){
if(hook!=null&&typeof hook=="function"){
hook(id,short,name,config);
lib.onload.add(()=>{
for(const hook of lib.hooks.addGroup){
if(hook!=null&&typeof hook=="function"){
hook(id,short,name,config);
}
}
}
})
return id;
},
//Yingbian