From c2f29fdd54c629ec898a30cb42faa735e3f596bf Mon Sep 17 00:00:00 2001 From: tomholub <6306961+tomholub@users.noreply.github.com> Date: Tue, 28 May 2024 20:39:31 +0200 Subject: [PATCH] added comment --- .../webmail/generic/setup-webmail-content-script.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extension/js/content_scripts/webmail/generic/setup-webmail-content-script.ts b/extension/js/content_scripts/webmail/generic/setup-webmail-content-script.ts index 154030b6b22..2a8c130b277 100644 --- a/extension/js/content_scripts/webmail/generic/setup-webmail-content-script.ts +++ b/extension/js/content_scripts/webmail/generic/setup-webmail-content-script.ts @@ -504,6 +504,14 @@ export const contentScriptSetupIfVacant = async (webmailSpecific: WebmailSpecifi } }; +/** + * This happens when Firefox (or possibly Thunderbird) just updated FlowCrypt. + * + * Previous (meaning this currently running) instance of FlowCrypt will no longer + * have access to its various classes or global variables, and is left in a + * semi-functioning state. The best we can do is to ask the user to reload + * the tab, which will load the newly updated version of the extension cleanly. + */ export const notifyMurdered = () => { const notifEl = document.getElementsByClassName('webmail_notifications')[0]; const div = document.createElement('div');