Skip to content

Commit

Permalink
EthicalAds: force ad mentioning "Coming soon" (#319)
Browse files Browse the repository at this point in the history
Closes #318
  • Loading branch information
humitos authored May 24, 2024
1 parent c779965 commit 2bbc6db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/readthedocs-addons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/readthedocs-addons.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/ethicalads.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ export class EthicalAdsAddon extends AddonBase {
this.addEaPlacementToElement(placement);
}

// Force a specific ad while testing this implementation.
// TODO: remove this after we have tested for some time.
placement.setAttribute(
"data-ea-force-ad",
"ethicaladsio-coming-soon-build-commands",
);

if (insertPlacement) {
let main = document.querySelector(selector);
if (main) {
Expand Down

0 comments on commit 2bbc6db

Please sign in to comment.