mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
no ie allowed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user