mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
fix issue with hiding loading message in embedded mode (#9235)
* 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.
This commit is contained in:
parent
2e34898f31
commit
5d689aa5ed
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