MCPcopy Create free account
hub / github.com/Rello/analytics / removeSplash

Function removeSplash

js/splash.js:24–38  ·  view source on GitHub ↗
(splash, appContent)

Source from the content-addressed store, hash-verified

22 }
23
24 function removeSplash(splash, appContent) {
25 if (splash.dataset.splashRemoved === '1') {
26 return;
27 }
28
29 splash.dataset.splashRemoved = '1';
30 splash.hidden = true;
31 splash.setAttribute('aria-hidden', 'true');
32
33 if (appContent) {
34 appContent.classList.remove('has-splash');
35 }
36
37 splash.remove();
38 }
39
40 function initSplash(splash) {
41 if (window.__analyticsAppScriptLoaded !== true) {

Callers 1

initSplashFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected