From b9e342e859fa5e6a656395862128eab979977259 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 21 Nov 2024 17:10:04 -0800 Subject: [PATCH] Note it's a hack --- src/ethicalads.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ethicalads.js b/src/ethicalads.js index d91f719..2e689a0 100644 --- a/src/ethicalads.js +++ b/src/ethicalads.js @@ -162,6 +162,7 @@ export class EthicalAdsAddon extends AddonBase { // Use fixed footer for smaller widths, but not mobile placement.setAttribute("data-ea-type", "text"); placement.setAttribute("data-ea-style", "fixedfooter"); + // TODO: THIS IS A HACK. IS THERE A BETTER WAY? // Add margin to the bottom to avoid hiding bottom of content const root_node = document.querySelector(docTool.getRootSelector()); root_node.style.marginBottom = "2em";