From f075de9c84e66e98425a98cb37771cd8fecd4876 Mon Sep 17 00:00:00 2001 From: hiro98 Date: Sun, 19 Jul 2020 18:27:22 +0200 Subject: [PATCH] integrate name change to element --- README.md | 4 ++-- manifest.json | 2 +- riot-katex.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d345665..d90bca9 100644 --- a/README.md +++ b/README.md @@ -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`. ## Writing LaTeX diff --git a/manifest.json b/manifest.json index a2df437..124dadc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Riot KaTeX", - "version": "1.1.0", + "version": "1.1.1", "description": "Renders formulas on riot chat instances chats using KaTeX.", diff --git a/riot-katex.js b/riot-katex.js index 5c74d39..c6f7e92 100644 --- a/riot-katex.js +++ b/riot-katex.js @@ -114,6 +114,6 @@ // detect Riot 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(); })();