From a5e54878afa2c6e0bba32d6280fa480891ec6c7d Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 12 Mar 2023 15:21:28 +0100 Subject: [PATCH] Add return statement --- themes/learn2-dark/templates/partials/goatcounter.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/learn2-dark/templates/partials/goatcounter.html.twig b/themes/learn2-dark/templates/partials/goatcounter.html.twig index 0b627c3..0325eac 100644 --- a/themes/learn2-dark/templates/partials/goatcounter.html.twig +++ b/themes/learn2-dark/templates/partials/goatcounter.html.twig @@ -4,7 +4,7 @@ // prepend the url to the path path: function(p) { return location.host + p }, // normalize referrer to just the URL - referrer: function(r) { new URL(document.referrer).origin } + referrer: function(r) { return new URL(document.referrer).origin } }