From 4854f2d9673a1d1e8244338d8d82f29151fddad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Bevacqua?= Date: Wed, 29 Jun 2016 12:02:17 -0300 Subject: [PATCH] Revert "Revert "Merge pull request #7568 from bevacqua/hotfix/config-xss"" This reverts commit dda84e9920450c43e9f5e3367641f6462e15b936. --- src/ui/public/metadata.js | 2 +- src/ui/views/chrome.jade | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/public/metadata.js b/src/ui/public/metadata.js index 96adb868af494..4ea263d9aab39 100644 --- a/src/ui/public/metadata.js +++ b/src/ui/public/metadata.js @@ -1,5 +1,5 @@ -import _ from 'lodash'; import $ from 'jquery'; +import _ from 'lodash'; export default deepFreeze(getState()); diff --git a/src/ui/views/chrome.jade b/src/ui/views/chrome.jade index 646b9bd329a45..45f42d1086a07 100644 --- a/src/ui/views/chrome.jade +++ b/src/ui/views/chrome.jade @@ -1,5 +1,5 @@ -- var j = function (o) { return JSON.stringify(o); } -- var appName = 'kibana'; +- + var appName = 'kibana'; block vars @@ -12,5 +12,5 @@ html(lang='en') title Kibana block head body(kbn-chrome, id='#{appName}-body') - script window.__KBN__ = !{j(kibanaPayload)}; + kbn-initial-state(data=JSON.stringify(kibanaPayload)) block content