From c19f7f4ace9efc4dccffb041511f85ec8f564e9c Mon Sep 17 00:00:00 2001 From: martgil Date: Sat, 24 Aug 2024 16:07:49 +0800 Subject: [PATCH] run element replacer in heartbeat (runIntervalFunctionsPeriodically) --- .../webmail/thunderbird/thunderbird-webmail-startup.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extension/js/content_scripts/webmail/thunderbird/thunderbird-webmail-startup.ts b/extension/js/content_scripts/webmail/thunderbird/thunderbird-webmail-startup.ts index a1dbffd50ba..92bb60409af 100644 --- a/extension/js/content_scripts/webmail/thunderbird/thunderbird-webmail-startup.ts +++ b/extension/js/content_scripts/webmail/thunderbird/thunderbird-webmail-startup.ts @@ -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(); }; }