Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomholub committed May 28, 2024
1 parent 254ff9b commit c2f29fd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c2f29fd

Please sign in to comment.