Skip to content

Commit

Permalink
fix issue with hiding loading message in embedded mode (#9235)
Browse files Browse the repository at this point in the history
* fix issue with hiding loading message in embedded mode

* Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.
  • Loading branch information
stacey-gammon authored Nov 28, 2016
1 parent 2e34898 commit 5d689aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/views/ui_app.jade
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ block content
script.
window.onload = function () {

var hideLoadingMessage = /#.*[?&]embed(&|$)/.test(window.location.href);
var hideLoadingMessage = /#.*[?&]embed(&|$|=true)/.test(window.location.href);
if (hideLoadingMessage) {
var loading = document.querySelector('.ui-app-loading h1');
var loading = document.querySelector('.kibanaWelcomeView');
loading.removeChild(loading.lastChild);
}

Expand Down

0 comments on commit 5d689aa

Please sign in to comment.