Skip to content

Commit 9aa8b32

Browse files
authored
Merge pull request element-hq#8238 from vector-im/dbkr/lt_gt_desktop_notifs
Fix literal &lt/&gt in notifications
2 parents 4f32be9 + a5ed5be commit 9aa8b32

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)