summaryrefslogtreecommitdiff
path: root/web/js/bb.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-14 06:08:07 +0300
committerDevaev Maxim <[email protected]>2018-11-14 06:08:07 +0300
commitc5544349d2bc5981ed843a7f71c8326364da4a3e (patch)
tree1e1a75fe7052a073a893b80fab0d8718e407acfb /web/js/bb.js
parentff2ac423b2ad5d49401b76dc3dfb287bcf60ab83 (diff)
refactoring
Diffstat (limited to 'web/js/bb.js')
-rw-r--r--web/js/bb.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/js/bb.js b/web/js/bb.js
new file mode 100644
index 00000000..8d8590db
--- /dev/null
+++ b/web/js/bb.js
@@ -0,0 +1,13 @@
+function check_browser() {
+ 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";
+ return false;
+ } else {
+ return true;
+ }
+}