Commit 9487f777 authored by Manvel Saroyan's avatar Manvel Saroyan

Issue 7193 - Remove promotion from first run page in MS Edge

parent be886f17
......@@ -91,7 +91,8 @@ section > p
body[data-warnings] > main > header,
body:not([data-warnings~="dataCorrupted"]) [data-warning="dataCorrupted"],
body:not([data-warnings~="reinitialized"]) [data-warning="reinitialized"]
body:not([data-warnings~="reinitialized"]) [data-warning="reinitialized"],
html[data-application="edge"] #abb-promotion
{
display: none;
}
......
......@@ -72,7 +72,7 @@
<p id="control-description" class="column-description" data-i18n="firstRun_control_description"></p>
</section>
<section class="column one-third">
<section id="abb-promotion" class="column one-third">
<header class="section-header">
<img src="skin/icons/first-run/rocket.svg" alt="">
<h2 data-i18n="firstRun_browser_title"></h2>
......
......@@ -105,10 +105,19 @@ function initWarnings()
});
}
function initApplication()
{
api.app.get("application").then((application) =>
{
document.documentElement.dataset.application = application;
});
}
// Translations are resolved on DOMContentLoaded so waiting for DOM by
// deferring script execution is insufficient
window.addEventListener("DOMContentLoaded", () =>
{
initLinks();
initWarnings();
initApplication();
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment