From a133276f99ee8911089b83a07ec0759b6489656c Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sat, 20 May 2023 12:00:51 +0200 Subject: [PATCH] Tag opening explorer requests with source --- src/ui/analyse/explorer/explorerConfig.ts | 2 +- src/ui/analyse/explorer/explorerXhr.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/analyse/explorer/explorerConfig.ts b/src/ui/analyse/explorer/explorerConfig.ts index bc64b4ecb6..9dec5e8735 100644 --- a/src/ui/analyse/explorer/explorerConfig.ts +++ b/src/ui/analyse/explorer/explorerConfig.ts @@ -123,7 +123,7 @@ export default { ]), d.db.selected() === 'masters' ? h('div.masters.message', [ h('i[data-icon=C]'), - h('p', i18n('masterDbExplanation', '2200', '1952', '2020')), + h('p', i18n('masterDbExplanation', '2200', '1952', '2022')), ]) : h('div', [ h('section.rating', [ h('label', i18n('averageElo')), diff --git a/src/ui/analyse/explorer/explorerXhr.ts b/src/ui/analyse/explorer/explorerXhr.ts index 2ed469c0e2..365e3dfa72 100644 --- a/src/ui/analyse/explorer/explorerXhr.ts +++ b/src/ui/analyse/explorer/explorerXhr.ts @@ -11,7 +11,11 @@ export interface OpeningConf { } export function openingXhr(variant: VariantKey, fen: string, config: OpeningConf, withGames: boolean): Promise { - const query: any = { fen, variant } + const query: any = { + fen, + variant, + source: 'mobile' + } if (!withGames) { query.topGames = 0 query.recentGames = 0