drupalSettingsLoader.js 519 B

12345678910111213141516
  1. /**
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. **/
  7. (function () {
  8. var settingsElement = document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');
  9. window.drupalSettings = {};
  10. if (settingsElement !== null) {
  11. window.drupalSettings = JSON.parse(settingsElement.textContent);
  12. }
  13. })();