Index: static/js/index.js |
=================================================================== |
--- a/static/js/index.js |
+++ b/static/js/index.js |
@@ -29,6 +29,18 @@ |
function init() |
{ |
container = document.getElementById("more-container"); |
+ checkEdgeSupport(); |
+ } |
+ |
+ function checkEdgeSupport() |
+ { |
+ var content = document.getElementById("content"); |
+ if(content.className.indexOf("edge") == -1 || !window.navigator.userAgent) |
Sebastian Noack
2016/05/17 17:02:11
If you put the check here below the UA check, it w
Sebastian Noack
2016/05/17 17:02:11
Nit: Missing space after "if".
saroyanm
2016/05/18 12:03:41
Done.
saroyanm
2016/05/18 12:03:41
Done.
|
+ return; |
+ |
+ var match = window.navigator.userAgent.match(/Edge\/(\d+.\d+)/); |
+ if (match && parseFloat(match[1]) >= 14.14342) |
+ content.classList.add("edge-supported"); |
} |
init(); |