From 119727c833a32de9523a94fca46c705272e9556a Mon Sep 17 00:00:00 2001 From: Damien Erambert Date: Wed, 20 Oct 2021 20:37:44 -0700 Subject: [PATCH] Update modernOverlays.ts --- src/features/modernOverlays.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/modernOverlays.ts b/src/features/modernOverlays.ts index d00dbfaad..7cfc51cc2 100644 --- a/src/features/modernOverlays.ts +++ b/src/features/modernOverlays.ts @@ -17,15 +17,15 @@ export const useModernOverlays = makeBTDModule((options) => { document.body.setAttribute('btd-modern-overlays', 'true'); - jq.ajaxPrefilter((options) => { + jq.ajaxPrefilter((ajaxOptions) => { try { - const url = new URL(options.url || ''); + const url = new URL(ajaxOptions.url || ''); if (!url.searchParams.has('include_ext_alt_text')) { return; } - options.url = buildURLWithSearchParams(options.url || '', { + ajaxOptions.url = buildURLWithSearchParams(ajaxOptions.url || '', { include_ext_media_color: true, }); } catch (e) {