Skip to content

Commit abae0af

Browse files
Update src/lib/startAd.js
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent fb5d9de commit abae0af

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/lib/startAd.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ export default async function startAd() {
5959
}
6060

6161
/**
62-
* Hides the ad
63-
* @param {Boolean} [force=false]
64-
*/
65-
export function hideAd(force = false) {
66-
const { ad } = window;
67-
if (ad?.active) {
68-
const $pages = tag.getAll(".page-replacement");
69-
const hide = $pages.length === 1;
62+
* Hides the ad
63+
* @param {Boolean} [force=false]
64+
*/
65+
export function hideAd(force = false) {
66+
const { ad } = window;
67+
if (ad?.active) {
68+
const $pages = tag.getAll(".page-replacement");
69+
const hide = $pages.length === 1;
7070

71-
if (force || hide) {
72-
ad.active = false;
73-
ad.hide();
74-
}
71+
if (force || hide) {
72+
ad.active = false;
73+
ad.hide();
7574
}
76-
}
75+
}
76+
}

0 commit comments

Comments
 (0)