Skip to content

Commit 50c4e44

Browse files
committed
Add notranslate class to matrixchat to prevent translation by Google Translate
Google Translate manipulates the DOM which is fundamentally incomaptible with React and causes exceptions to be thrown when React tries to manipulate the DOM based on its VDOM and the DOM methods throw exceptions because the DOM structure is not what React thinks it is. Riot has an i18n system, although it doesn't cover all strings and all languages. Fixes element-hq#13557
1 parent d44808e commit 50c4e44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/vector/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</head>
5252
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
5353
<noscript>Sorry, Riot requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
54-
<section id="matrixchat" style="height: 100%; overflow: auto;"></section>
54+
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>
5555
<script src="<%= htmlWebpackPlugin.files.chunks['bundle'].entry %>"></script>
5656

5757
<!-- Legacy supporting Prefetch images -->

0 commit comments

Comments
 (0)