X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fstatistics%2Fstatistics.es6.js;fp=web%2Fcore%2Fmodules%2Fstatistics%2Fstatistics.es6.js;h=666536d3198ac68bb233c7dae3ca900d8fc6256b;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=0000000000000000000000000000000000000000;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/statistics/statistics.es6.js b/web/core/modules/statistics/statistics.es6.js new file mode 100644 index 000000000..666536d31 --- /dev/null +++ b/web/core/modules/statistics/statistics.es6.js @@ -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));