Skip to content

Commit

Permalink
run element replacer in heartbeat (runIntervalFunctionsPeriodically)
Browse files Browse the repository at this point in the history
  • Loading branch information
martgil committed Aug 24, 2024
1 parent fd54d62 commit c19f7f4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ export class ThunderbirdWebmailStartup {
variant: undefined,
getUserAccountEmail: () => undefined, // todo, but can start with undefined
getUserFullName: () => undefined, // todo, but can start with undefined
getReplacer: () => this.replacer, // todo - add this class empty, methods do nothing
getReplacer: () => this.replacer,
start: this.start,
});
};

private start = async () => {
this.replacer = new ThunderbirdElementReplacer();
// this.replacer.replaceThunderbirdMsgPane should now be run in heartbeat-like function runIntervalFunctionsPeriodically()
await this.replacer.replaceThunderbirdMsgPane();
this.replacer.runIntervalFunctionsPeriodically();
};
}

0 comments on commit c19f7f4

Please sign in to comment.