We don't support IE

pull/3105/head
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>
<script type="text/javascript">
window.onerror = function () {
function displayIncompatibleBrowser () {
var elem = document.getElementById('incompatible-browser')
if (elem.className.indexOf('browser-ok') === -1) {
elem.style.display = 'block'
}
}
window.onerror = function () {
displayIncompatibleBrowser()
}
if (/MSIE|Trident/.test(window.navigator.userAgent) ) {
displayIncompatibleBrowser()
}
</script>
<my-app>