- Issue created by @rolfl
- πΊπΈUnited States rolfl
Update: I confirmed that the script is loading properly, and the ouibounce-exit-modal element is indeed appearing on the page, but using the debugger, it seems like "ouibounce" is always coming through as undefined.
Drupal.behaviors.initOuibounce = { attach: function (context, settings) { once('init-ouibounce', document.getElementById('ouibounce-exit-modal'), context).forEach(function (item) { if (typeof ouibounce !== "undefined") { // <=== this is showing up as undefined always
- πΊπΈUnited States rolfl
Update: I confirmed that the script is loading properly, and the ouibounce-exit-modal element is indeed appearing on the page, but using the debugger, it seems like "ouibounce" is always coming through as undefined.
Drupal.behaviors.initOuibounce = { attach: function (context, settings) { once('init-ouibounce', document.getElementById('ouibounce-exit-modal'), context).forEach(function (item) { if (typeof ouibounce !== "undefined") { // <=== this is showing up as undefined always
- π©πͺGermany Anybody Porta Westfalica
@rolfl that would mean the ouibounce library is not present!