FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Listen, Linter, you better hope I never meet you in a dark alley · devhttps/frontend@ba01e9c · GitHub

Commit ba01e9c

Browse files
committed
Listen, Linter, you better hope I never meet you in a dark alley
1 parent 035179b commit ba01e9c

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎static/src/javascripts/projects/commercial/modules/ad-free-slot-remove.js‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ const adFreeSlotRemove = once(
4242
return fastdom.write(() => {
4343
if (bodyEl) {
4444
if (bodyEl.classList.toString().includes('has-page-skin')) {
45-
bodyEl.classList.remove(
46-
'has-page-skin'
47-
);
45+
bodyEl.classList.remove('has-page-skin');
4846
}
49-
if (bodyEl.classList.toString().includes('has-active-pageskin')) {
50-
bodyEl.classList.remove(
51-
'has-active-pageskin'
52-
);
47+
if (
48+
bodyEl.classList.toString().includes('has-active-pageskin')
49+
) {
50+
bodyEl.classList.remove('has-active-pageskin');
5351
}
5452
}
5553
adSlotsToRemove.forEach((adSlot: Element) => adSlot.remove());

‎static/src/javascripts/projects/commercial/modules/creatives/page-skin.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ const pageSkin = (): void => {
2121
};
2222

2323
const togglePageSkin = (): void => {
24-
if (hasPageSkin && hasCrossedBreakpoint(true) && !commercialFeatures.adFree) {
24+
if (
25+
hasPageSkin &&
26+
hasCrossedBreakpoint(true) &&
27+
!commercialFeatures.adFree
28+
) {
2529
togglePageSkinActiveClass();
2630
}
2731
};

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL