fix issue with hiding loading message in embedded mode (#9237)

Backports PR #9235

**Commit 1:**
fix issue with hiding loading message in embedded mode

* Original sha: a5d4aaa621
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z

**Commit 2:**
Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.

* Original sha: 1f6d7d9389
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z
This commit is contained in:
jasper 2016-11-28 17:02:31 -05:00 committed by Stacey Gammon
parent c3b67ef2cd
commit 512e6bd3f0

View file

@ -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);
}