Small fix with injection

This commit is contained in:
peter
2020-01-22 01:02:27 +01:00
parent e4a6972884
commit 7a0c88df11
2 changed files with 7 additions and 1 deletions
@@ -110,7 +110,6 @@ implements FrontworkComponent<LoginManagerIfc, LoginManagerFeatureIfc>{
initialize = async () => {
this.exporters = [this.guild, this.item, this.raid, this.character]
//set up permissions
await Promise.all(
[this, ...this.exporters].flatMap(exp => exp.exportRPCFeatures().map(async (feature) => {
+7
View File
@@ -37,6 +37,13 @@ export const Injector = new class {
this.moduleObjs[this.rootInterface.name] = rootobj
this.moduleObjs[target.name] = rootobj
while(this.injectionQueue.length > 0){
const i = this.injectionQueue.shift()
if(this.moduleObjs[i.what.name])
i.target[i.where] = this.moduleObjs[i.what.name]
else
this.injectionQueue.push()
}
this.injectionQueue.forEach(i => {
i.target[i.where] = this.moduleObjs[i.what.name]
})