diff --git a/templates/js/_alwaysDisplayed.js b/templates/js/_alwaysDisplayed.js index 78172f2..e5f3366 100644 --- a/templates/js/_alwaysDisplayed.js +++ b/templates/js/_alwaysDisplayed.js @@ -41,4 +41,21 @@ var alwaysDisplayed = function() { } } -window.setTimeout(alwaysDisplayed, 200) +let content = document.getElementById('content') + +if (content && content.classList.contains('app-settings')) { + let loaded = false + const config = {attributes: false, childList: true, subtree: true} + const observer = new MutationObserver(() => { + if (!loaded && content.querySelector('#app-category-your-apps')) { + loaded = true + + alwaysDisplayed() + } + }) + + observer.observe(content, config) +} else { + window.setTimeout(alwaysDisplayed, 200) +} +