Skip to content

Commit

Permalink
[fix] Get rid of <meta> in favor of directive-style element.
Browse files Browse the repository at this point in the history
Former-commit-id: e33fa40
  • Loading branch information
bevacqua committed Jun 28, 2016
1 parent fcd369f commit 2b167c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/public/metadata.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/chrome.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2b167c7

Please sign in to comment.