From 2b167c7104ab043a2cd1dd492ffe356293a26a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Bevacqua?= Date: Tue, 28 Jun 2016 17:53:25 -0300 Subject: [PATCH] [fix] Get rid of in favor of directive-style element. Former-commit-id: e33fa407aeee2c04d65d5b308e355ebda14a22e5 --- src/ui/public/metadata.js | 2 +- src/ui/views/chrome.jade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/public/metadata.js b/src/ui/public/metadata.js index af93aeb616ed8..4f8103221e109 100644 --- a/src/ui/public/metadata.js +++ b/src/ui/public/metadata.js @@ -1,7 +1,7 @@ import $ from 'jquery'; import _ from 'lodash'; -const state = $('[kbn-initial-state]').attr('kbn-initial-state'); +const state = $('kbn-initial-state').attr('data'); const kbn = window.__KBN__ = JSON.parse(state); export default deepFreeze(kbn); diff --git a/src/ui/views/chrome.jade b/src/ui/views/chrome.jade index 6091b440a54a4..45f42d1086a07 100644 --- a/src/ui/views/chrome.jade +++ b/src/ui/views/chrome.jade @@ -12,5 +12,5 @@ html(lang='en') title Kibana block head body(kbn-chrome, id='#{appName}-body') - meta(kbn-initial-state=JSON.stringify(kibanaPayload)) + kbn-initial-state(data=JSON.stringify(kibanaPayload)) block content