Small fix with injection
This commit is contained in:
@@ -110,7 +110,6 @@ implements FrontworkComponent<LoginManagerIfc, LoginManagerFeatureIfc>{
|
|||||||
|
|
||||||
initialize = async () => {
|
initialize = async () => {
|
||||||
this.exporters = [this.guild, this.item, this.raid, this.character]
|
this.exporters = [this.guild, this.item, this.raid, this.character]
|
||||||
|
|
||||||
//set up permissions
|
//set up permissions
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
[this, ...this.exporters].flatMap(exp => exp.exportRPCFeatures().map(async (feature) => {
|
[this, ...this.exporters].flatMap(exp => exp.exportRPCFeatures().map(async (feature) => {
|
||||||
|
|||||||
@@ -37,6 +37,13 @@ export const Injector = new class {
|
|||||||
|
|
||||||
this.moduleObjs[this.rootInterface.name] = rootobj
|
this.moduleObjs[this.rootInterface.name] = rootobj
|
||||||
this.moduleObjs[target.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 => {
|
this.injectionQueue.forEach(i => {
|
||||||
i.target[i.where] = this.moduleObjs[i.what.name]
|
i.target[i.where] = this.moduleObjs[i.what.name]
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user