Commit c72c4ef3 authored by Naveen Valecha's avatar Naveen Valecha
Browse files

Issue #3307334 by naveenvalecha, eleonel: Load convivial Profiler once and...

Issue #3307334 by naveenvalecha, eleonel: Load convivial Profiler once and update convivial-profiler library to v0.1.32
parent 96a06f88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
library:
  js:
    //cdn.jsdelivr.net/gh/morpht/convivial-profiler@v0.1.31/dist/bundle.js: { type: external, minified: true }
    //cdn.jsdelivr.net/gh/morpht/convivial-profiler@v0.1.32/dist/bundle.js: { type: external, minified: true }

init:
  js:
+2 −4
Original line number Diff line number Diff line
@@ -11,9 +11,7 @@
  'use strict';
  Drupal.behaviors.convivialProfiler = {
    attach: function (context, settings) {
       // @Todo Due of conflict in tracking of smart_content ajax blocks.
      // See the formfiller and formtracker destination plugins.
      // once('convivialProfiler', 'html', context).forEach( function (element) {
      once('convivialProfiler', 'html', context).forEach( function (element) {
        window.convivialProfiler = new ConvivialProfiler(config.config, config.site, config.license_key);
        window.convivialProfiler.collect();
        $(document).once('cp_trackable').on('click', '.cp_trackable a.btn', function (event) {
@@ -31,7 +29,7 @@
            });
          }
        });
      // });
      });
    }
  };
})(jQuery, window, once, Drupal, drupalSettings.convivialProfiler, window.ConvivialProfiler.default);