mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
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:
parent
c3b67ef2cd
commit
512e6bd3f0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue