]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/matomo.js
Load pluralizers
[rails.git] / app / assets / javascripts / matomo.js
index 4ed3de941bfc05255f5bc33f228a00fb2c822c76..239cf12807c04cfce356dac5b91c7ca07f953006 100644 (file)
@@ -1,6 +1,6 @@
 if (OSM.MATOMO) {
-  $(document).ready(function () {
-    const base = document.location.protocol + "//" + OSM.MATOMO.location + "/";
+  $(function () {
+    const base = location.protocol + "//" + OSM.MATOMO.location + "/";
     let matomoTracker;
 
     const matomoLoader = $.ajax({