Loading addtohomescreen.js +3 −6 Original line number Diff line number Diff line Loading @@ -3,15 +3,12 @@ * Call the 'Add to homescreen' library with the Drupal settings. */ (function () { 'use strict'; (function (Drupal, drupalSettings, addToHomescreen) { Drupal.behaviors.addToHomeScreen = { attach: function (context, settings) { /* global addToHomescreen */ settings.addtohomescreen = settings.addtohomescreen || Drupal.settings.addtohomescreen; settings.addtohomescreen = settings.addtohomescreen || drupalSettings.addtohomescreen; if (typeof (addToHomescreen) === 'function') { if (settings.addtohomescreen.debug) { addToHomescreen.removeSession(); Loading @@ -21,4 +18,4 @@ } }; })(); })(Drupal, drupalSettings, addToHomescreen); addtohomescreen.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ set_up: dependencies: - core/jquery - core/drupal - core/drupalSettings addtohomescreen: css: Loading Loading
addtohomescreen.js +3 −6 Original line number Diff line number Diff line Loading @@ -3,15 +3,12 @@ * Call the 'Add to homescreen' library with the Drupal settings. */ (function () { 'use strict'; (function (Drupal, drupalSettings, addToHomescreen) { Drupal.behaviors.addToHomeScreen = { attach: function (context, settings) { /* global addToHomescreen */ settings.addtohomescreen = settings.addtohomescreen || Drupal.settings.addtohomescreen; settings.addtohomescreen = settings.addtohomescreen || drupalSettings.addtohomescreen; if (typeof (addToHomescreen) === 'function') { if (settings.addtohomescreen.debug) { addToHomescreen.removeSession(); Loading @@ -21,4 +18,4 @@ } }; })(); })(Drupal, drupalSettings, addToHomescreen);
addtohomescreen.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ set_up: dependencies: - core/jquery - core/drupal - core/drupalSettings addtohomescreen: css: Loading