no ie allowed

This commit is contained in:
Devaev Maxim
2018-08-20 07:43:23 +03:00
parent 0d19451bbe
commit a4b6f4fb98
7 changed files with 73 additions and 15 deletions

View File

@@ -1,6 +1,15 @@
function main() {
var hid = new Hid();
var ui = new Ui(hid);
new Session(new Atx(), hid, new Msd());
new Stream(ui);
if (
!window.navigator
|| window.navigator.userAgent.indexOf("MSIE ") > 0
|| window.navigator.userAgent.indexOf("Trident/") > 0
|| window.navigator.userAgent.indexOf("Edge/") > 0
) {
$("bad-browser-modal").style.visibility = "visible";
} else {
var hid = new Hid();
var ui = new Ui(hid);
new Session(new Atx(), hid, new Msd());
new Stream(ui);
}
}