| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 035179b commit ba01e9c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,14 +42,12 @@ const adFreeSlotRemove = once( | |||
| 42 | 42 | return fastdom.write(() => { | |
| 43 | 43 | if (bodyEl) { | |
| 44 | 44 | if (bodyEl.classList.toString().includes('has-page-skin')) { | |
| 45 | - bodyEl.classList.remove( | ||
| 46 | - 'has-page-skin' | ||
| 47 | - ); | ||
| 45 | + bodyEl.classList.remove('has-page-skin'); | ||
| 48 | 46 | } | |
| 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'); | ||
| 53 | 51 | } | |
| 54 | 52 | } | |
| 55 | 53 | adSlotsToRemove.forEach((adSlot: Element) => adSlot.remove()); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,11 @@ const pageSkin = (): void => { | |||
| 21 | 21 | }; | |
| 22 | 22 | ||
| 23 | 23 | const togglePageSkin = (): void => { | |
| 24 | - if (hasPageSkin && hasCrossedBreakpoint(true) && !commercialFeatures.adFree) { | ||
| 24 | + if ( | ||
| 25 | + hasPageSkin && | ||
| 26 | + hasCrossedBreakpoint(true) && | ||
| 27 | + !commercialFeatures.adFree | ||
| 28 | + ) { | ||
| 25 | 29 | togglePageSkinActiveClass(); | |
| 26 | 30 | } | |
| 27 | 31 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments