fsavje/math-with-slack

Fix loading when switching teams

Closed this issue · 3 comments

Fix loading when switching teams

It seems to load only for the team that is current when Slack is started. The good news though is that if you have loaded once you can switch to another team, switch back, and it is still loaded.

So a workaround for multiple teams is to switch to any team where it is not yet loaded, then quit and restart Slack. Do this for each team and it works from then on, for all teams.

Update: On further experimentation, it seems that the above workaround is valid only for up to three teams (using the Windows client). If you switch to a fourth team, it loads that one from scratch and does not install the MathJax code.

Update 2: Even the "up to three teams" rule is not guaranteed. Slack seems to swap non-active teams out of memory at random. When you switch back to such a team, it loses the MathJax code.

@gauss256 Team switching should now work. Please let me know if it doesn't.

Works now. Lots of nice changes in v0.2!