We don't support IE

This commit is contained in:
Chocobozzz 2020-08-24 11:55:42 +02:00
parent b0ce7c39dc
commit 6c733e4617
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 9 additions and 1 deletions

View File

@ -49,12 +49,20 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
window.onerror = function () { function displayIncompatibleBrowser () {
var elem = document.getElementById('incompatible-browser') var elem = document.getElementById('incompatible-browser')
if (elem.className.indexOf('browser-ok') === -1) { if (elem.className.indexOf('browser-ok') === -1) {
elem.style.display = 'block' elem.style.display = 'block'
} }
} }
window.onerror = function () {
displayIncompatibleBrowser()
}
if (/MSIE|Trident/.test(window.navigator.userAgent) ) {
displayIncompatibleBrowser()
}
</script> </script>
<my-app> <my-app>