Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / statistics / statistics.es6.js
diff --git a/web/core/modules/statistics/statistics.es6.js b/web/core/modules/statistics/statistics.es6.js
new file mode 100644 (file)
index 0000000..666536d
--- /dev/null
@@ -0,0 +1,15 @@
+/**
+ * @file
+ * Statistics functionality.
+ */
+
+(function ($, Drupal, drupalSettings) {
+  $(document).ready(() => {
+    $.ajax({
+      type: 'POST',
+      cache: false,
+      url: drupalSettings.statistics.url,
+      data: drupalSettings.statistics.data,
+    });
+  });
+}(jQuery, Drupal, drupalSettings));