Skip to content

Commit a5ed5be

Browse files
committed
Fix literal &lt/&gt in notifications
Apparently I couldn't decide whether I was writing indexOf(...) > -1 or .includes() Fixes element-hq#8230
1 parent 91c037e commit a5ed5be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
136136
// maybe we should pass basic styling (italics, bold, underline) through from MD
137137
// we only have to strip out < and > as the spec doesn't include anything about things like &amp;
138138
// so we shouldn't assume that all implementations will treat those properly. Very basic tag parsing is done.
139-
if (navigator.userAgent.indexOf('Linux')) {
139+
if (navigator.userAgent.includes('Linux')) {
140140
msg = msg.replace(/</g, '&lt;').replace(/>/g, '&gt;');
141141
}
142142

0 commit comments

Comments
 (0)