We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d97118 commit 54307d1Copy full SHA for 54307d1
lib/locker.js
@@ -64,6 +64,10 @@ const locker = {
64
default:
65
// nothing
66
}
67
+ },
68
+
69
+ areAdsAllowed() {
70
+ return true;
71
72
73
lib/story.js
@@ -5,6 +5,12 @@
5
import * as zones from "./zones.js";
6
7
export async function render(locker) {
8
+ // If ads are disabled bail
9
+ if(!locker.areAdsAllowed()) {
10
+ zones.log("none", "ads are disabled for this page");
11
+ return;
12
+ }
13
14
// Locker configs
15
const subscriber = locker.user.isSubscriber();
16
const market = locker.getConfig("marketInfo.domain");
0 commit comments