have warning support all browser versions

This commit is contained in:
Danny Skubak 2018-06-29 15:32:25 -04:00
parent d62bb23483
commit a853103862
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ try {
}
if (badBrowser) {
var el = document.getElementsByClassName('BadBrowser')[0];
var el = document.getElementById('BadBrowserWarning');
el.className += ' is-open';
// Dumb check for known mobile OS's. Not important to catch all, just
// displays more appropriate information.

View File

@ -37,7 +37,7 @@
</div>
</noscript>
<div class="BadBrowser" style="display: none;">
<div id="BadBrowserWarning" class="BadBrowser" style="display: none;">
<div class="BadBrowser-content">
<h2>Your Browser is Out of Date</h2>
<p class="is-desktop">