From 29cc1dddfaba64000d3bd72ef7e495282a4ac4f6 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 16 Jan 2022 11:26:29 +0100 Subject: [PATCH] Documentation --- src/overrides/blog.html | 2 +- src/partials/integrations/analytics/google.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/overrides/blog.html b/src/overrides/blog.html index 4f6833e2b..c57dfdba7 100644 --- a/src/overrides/blog.html +++ b/src/overrides/blog.html @@ -53,7 +53,7 @@ giscus.setAttribute("data-theme", "dark") } - /* Reload on palette change */ + /* Register event handlers after documented loaded */ document.addEventListener("DOMContentLoaded", function() { var ref = document.querySelector("[data-md-component=palette]") component$.subscribe(function (component) { diff --git a/src/partials/integrations/analytics/google.html b/src/partials/integrations/analytics/google.html index 26a051f47..061c35b1b 100644 --- a/src/partials/integrations/analytics/google.html +++ b/src/partials/integrations/analytics/google.html @@ -35,7 +35,7 @@ gtag("js", new Date()) gtag("config", "{{ property }}") - /* Register virtual event handlers */ + /* Register event handlers after documented loaded */ document.addEventListener("DOMContentLoaded", function() { if (document.forms.search) { var query = document.forms.search.query @@ -70,7 +70,7 @@ ga("set", "anonymizeIp", true) ga("send", "pageview") - /* Register virtual event handlers */ + /* Register event handlers after documented loaded */ document.addEventListener("DOMContentLoaded", function() { if (document.forms.search) { var query = document.forms.search.query