We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5d9de commit abae0afCopy full SHA for abae0af
src/lib/startAd.js
@@ -59,18 +59,18 @@ export default async function startAd() {
59
}
60
61
/**
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;
+ * Hides the ad
+ * @param {Boolean} [force=false]
+ */
+export function hideAd(force = false) {
+ const { ad } = window;
+ if (ad?.active) {
+ const $pages = tag.getAll(".page-replacement");
+ const hide = $pages.length === 1;
70
71
- if (force || hide) {
72
- ad.active = false;
73
- ad.hide();
74
- }
+ if (force || hide) {
+ ad.active = false;
+ ad.hide();
75
76
+ }
+}
0 commit comments