diff --git a/ui/msg/src/view/enhance.ts b/ui/msg/src/view/enhance.ts index fe8fafc739..2c81a55313 100644 --- a/ui/msg/src/view/enhance.ts +++ b/ui/msg/src/view/enhance.ts @@ -54,7 +54,7 @@ type LinkType = 'game'; const domain = window.location.host; const gameRegex = new RegExp(`(?:https?://)${domain}/(?:embed/)?(\\w{8})(?:(?:/(white|black))|\\w{4}|)(#\\d+)?$`); -const notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer']; +const notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer', 'timeline']; export function expandIFrames(el: HTMLElement) { diff --git a/ui/site/src/expand-text.ts b/ui/site/src/expand-text.ts index c9c03972d1..9d548777d9 100644 --- a/ui/site/src/expand-text.ts +++ b/ui/site/src/expand-text.ts @@ -42,7 +42,7 @@ window.lichess.load.then(() => { const domain = window.location.host, studyRegex = new RegExp(domain + '/study/(?:embed/)?(\\w{8})/(\\w{8})(#\\d+)?\\b'), gameRegex = new RegExp(domain + '/(?:embed/)?(\\w{8})(?:(?:/(white|black))|\\w{4}|)(#\\d+)?\\b'), - notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer']; + notGames = ['training', 'analysis', 'insights', 'practice', 'features', 'password', 'streamer', 'timeline']; function parseLink(a: HTMLAnchorElement): Parsed | undefined { const yt = toYouTubeEmbedUrl(a.href);