From ada53c6888a31b30eb77cc8abf1324212e55e1cd Mon Sep 17 00:00:00 2001 From: mohitalgolia <101385480+mohitalgolia@users.noreply.github.com> Date: Thu, 7 Dec 2023 10:48:41 +0530 Subject: [PATCH] Delete view/frontend/web/insights/notices-mixin.js --- view/frontend/web/insights/notices-mixin.js | 23 --------------------- 1 file changed, 23 deletions(-) delete mode 100644 view/frontend/web/insights/notices-mixin.js diff --git a/view/frontend/web/insights/notices-mixin.js b/view/frontend/web/insights/notices-mixin.js deleted file mode 100644 index 226fed43a..000000000 --- a/view/frontend/web/insights/notices-mixin.js +++ /dev/null @@ -1,23 +0,0 @@ -define( - [ - 'jquery', - 'algoliaInsights' - ], - function ($) { - 'use strict'; - var algoliaCookieMixin = { - _create: function () { - this._super(); - $(document).on('click', algoliaConfig.cookieConfiguration.cookieAllowButtonSelector, function (event) { - event.preventDefault(); - algoliaInsights.track(algoliaConfig, true); - }); - } - }; - - return function (widget) { - $.widget('mage.cookieNotices', widget, algoliaCookieMixin); - return $.mage.cookieNotices; - }; - -});