X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmisc%2FdrupalSettingsLoader.js;fp=web%2Fcore%2Fmisc%2FdrupalSettingsLoader.js;h=c854bca27310209f89960cc773f3c50e2f682f16;hp=7ff292efbfc5267f0e69e272020dae9f3e092f0d;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/misc/drupalSettingsLoader.js b/web/core/misc/drupalSettingsLoader.js index 7ff292efb..c854bca27 100644 --- a/web/core/misc/drupalSettingsLoader.js +++ b/web/core/misc/drupalSettingsLoader.js @@ -1,25 +1,16 @@ /** - * @file - * Parse inline JSON and initialize the drupalSettings global object. - */ +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ (function () { - - 'use strict'; - - // Use direct child elements to harden against XSS exploits when CSP is on. 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"]'); - /** - * Variable generated by Drupal with all the configuration created from PHP. - * - * @global - * - * @type {object} - */ window.drupalSettings = {}; if (settingsElement !== null) { window.drupalSettings = JSON.parse(settingsElement.textContent); } -})(); +})(); \ No newline at end of file