mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix literal </> in notifications
Apparently I couldn't decide whether I was writing indexOf(...) > -1 or .includes() Fixes https://github.com/vector-im/riot-web/issues/8230
This commit is contained in:
parent
91c037e578
commit
a5ed5be3cf
@ -136,7 +136,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
// maybe we should pass basic styling (italics, bold, underline) through from MD
|
// maybe we should pass basic styling (italics, bold, underline) through from MD
|
||||||
// we only have to strip out < and > as the spec doesn't include anything about things like &
|
// we only have to strip out < and > as the spec doesn't include anything about things like &
|
||||||
// so we shouldn't assume that all implementations will treat those properly. Very basic tag parsing is done.
|
// so we shouldn't assume that all implementations will treat those properly. Very basic tag parsing is done.
|
||||||
if (navigator.userAgent.indexOf('Linux')) {
|
if (navigator.userAgent.includes('Linux')) {
|
||||||
msg = msg.replace(/</g, '<').replace(/>/g, '>');
|
msg = msg.replace(/</g, '<').replace(/>/g, '>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user