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); lib.group.add(id);
if(short)lib.translate[id] = short; if(short)lib.translate[id] = short;
if(name)lib.translate[`${id}2`] = name; if(name)lib.translate[`${id}2`] = name;
for(const hook of lib.hooks.addGroup){ lib.onload.add(()=>{
if(hook!=null&&typeof hook=="function"){ for(const hook of lib.hooks.addGroup){
hook(id,short,name,config); if(hook!=null&&typeof hook=="function"){
hook(id,short,name,config);
}
} }
} })
return id; return id;
}, },
//Yingbian //Yingbian