mirror of https://github.com/Chocobozzz/PeerTube
We don't support IE
parent
b0ce7c39dc
commit
6c733e4617
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue