diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2020-10-04 18:33:13 +0200 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-04-06 09:43:45 +0800 |
commit | 9147038defa859e42b999573b1279f90c5822c2f (patch) | |
tree | d803a6f5e9eb5c362d9e752c69597e02d8998872 /js/i18n.js | |
parent | adf5b9165c0712d1bcb834e03582d22837facce9 (diff) | |
download | ematrix-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.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |