integrate name change to element

This commit is contained in:
hiro98 2020-07-19 18:27:22 +02:00
parent 423cb99399
commit f075de9c84
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# ![Icon](icons/icon.png) Riot KaTeX # ![Icon](icons/icon.png) Riot/Element KaTeX
This extension injects KaTeX into the `Riot` chat client for This extension injects KaTeX into the `Element` chat client for
`matrix`. `matrix`.
## Writing LaTeX ## Writing LaTeX

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Riot KaTeX", "name": "Riot KaTeX",
"version": "1.1.0", "version": "1.1.1",
"description": "Renders formulas on riot chat instances chats using KaTeX.", "description": "Renders formulas on riot chat instances chats using KaTeX.",

View file

@ -114,6 +114,6 @@
// detect Riot // detect Riot
let app_name_meta = document.head.querySelector('meta[name="application-name"]'); let app_name_meta = document.head.querySelector('meta[name="application-name"]');
if (app_name_meta && app_name_meta.content === 'Riot') if (app_name_meta && (app_name_meta.content === 'Riot' || app_name_meta.content === 'Element'))
wait_for_matrix(); wait_for_matrix();
})(); })();