Add 'timeline' in notGames

Resolves #7234
pull/7235/head
tors42 2020-09-05 22:33:40 +02:00
parent 20d57fa135
commit eaddab582e
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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);