fix issue where switching chats didn't re-render math

This commit is contained in:
Valentin Boettcher 2020-04-12 12:28:13 +02:00
parent b9eaee43f6
commit 14348d6a5e
2 changed files with 1 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Riot KaTeX for matrix.tu-dresden.de",
"version": "1.0.6",
"version": "1.0.7",
"description": "Renders formulas on matrix.tu-dresden.de chats using KaTeX.",

View file

@ -84,7 +84,6 @@
return observer;
}
let last_title = ''
const header = document.querySelector('title');
// start listening
@ -92,10 +91,6 @@
// when changing the chat room, we have to create a new listener
function change_chat_element(mutationsList, observer) {
if(last_title === header.textContent)
return;
last_title = header.textContent;
if (chat_observer) {
chat_observer.disconnect();
}