mirror of
https://github.com/vale981/riot-katex
synced 2025-03-04 08:41:39 -05:00
fix issue where switching chats didn't re-render math
This commit is contained in:
parent
b9eaee43f6
commit
14348d6a5e
2 changed files with 1 additions and 6 deletions
|
@ -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.",
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue