aboutsummaryrefslogtreecommitdiffstats
path: root/js/i18n.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2020-10-04 18:33:13 +0200
committerJesús <heckyel@hyperbola.info>2022-04-06 09:43:45 +0800
commit9147038defa859e42b999573b1279f90c5822c2f (patch)
treed803a6f5e9eb5c362d9e752c69597e02d8998872 /js/i18n.js
parentadf5b9165c0712d1bcb834e03582d22837facce9 (diff)
downloadematrix-9147038defa859e42b999573b1279f90c5822c2f.tar.lz
ematrix-9147038defa859e42b999573b1279f90c5822c2f.tar.xz
ematrix-9147038defa859e42b999573b1279f90c5822c2f.zip
Style changes
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'js/i18n.js')
-rw-r--r--js/i18n.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/i18n.js b/js/i18n.js
index 1c8945f..cf27a69 100644
--- a/js/i18n.js
+++ b/js/i18n.js
@@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see {http://www.gnu.org/licenses/}.
- Home: https://libregit.spks.xyz/heckyel/ematrix
+ Home: https://gitlab.com/vannilla/ematrix
uMatrix Home: https://github.com/gorhill/uMatrix
*/
@@ -76,6 +76,9 @@
// Firefox extension validator warns if using a variable as
// argument for document.createElement().
// ηMatrix: is it important for us?
+ // ηMatrix (4.4.3 onwards): let's just use the variable and
+ // hope for the best, no need to have a redundant switch.
+ /*
switch (text) {
case 'b':
return document.createElement('b');
@@ -96,6 +99,8 @@
default:
break;
}
+ */
+ return document.createElement(text);
};
let safeTextToTextNode = function (text) {