Revert "Added message for chrome users that displays info about blocked UF2s"

This commit is contained in:
Dan Halbert 2020-07-26 00:04:57 -04:00 committed by GitHub
parent f1ff997883
commit f50f8a1c6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 27 deletions

View file

@ -1,12 +1,3 @@
<div class="section alert" id="chrome-alert">
<i class="fa fa-exclamation-circle"></i>
<p>
Google chrome recently blocked downloading UF2 files if safe browsing
is enabled. If you are experiencing problems, you can either <a href="https://support.google.com/chrome/answer/9890866">disable
safe browsing in settings</a> or go to your downloads page and manually
permit it.
</p>
</div>
{% assign board = site.data.files | where: "id", page.board_id %} {% assign board = site.data.files | where: "id", page.board_id %}
{% if board[0] %} {% if board[0] %}
{% assign stable = board[0].versions | where: "stable", true | sort: "version" %} {% assign stable = board[0].versions | where: "stable", true | sort: "version" %}

View file

@ -7,10 +7,6 @@ document.addEventListener('DOMContentLoaded',function() {
var script = document.createElement('script'); var script = document.createElement('script');
script.setAttribute('src', '//accounts.adafruit.com/users/locale?callback=setLocale'); script.setAttribute('src', '//accounts.adafruit.com/users/locale?callback=setLocale');
document.body.appendChild(script); document.body.appendChild(script);
if (navigator.userAgent.indexOf("Chrome") !== -1) {
document.getElementById("chrome-alert").style.display = "flex";
}
},false); },false);
function languageSelectHandler(event) { function languageSelectHandler(event) {

View file

@ -22,10 +22,6 @@
margin: 0 0 10px 0; margin: 0 0 10px 0;
} }
#chrome-alert {
display: none;
}
.download-section { .download-section {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
@ -147,16 +143,6 @@
} }
} }
.alert {
background-color: #fabfbe;
display: flex;
align-items: center;
i {
padding-right: 15px;
font-size: 33px;
}
}
.download-buttons { .download-buttons {
a { a {
width: 100%; width: 100%;