Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Update modernOverlays.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed Oct 21, 2021
1 parent 2967e89 commit 119727c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/modernOverlays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 119727c

Please sign in to comment.