Index: static/js/index.js |
=================================================================== |
--- a/static/js/index.js |
+++ b/static/js/index.js |
@@ -29,6 +29,19 @@ |
function init() |
{ |
container = document.getElementById("more-container"); |
+ checkEdgeSupport(); |
+ } |
+ |
+ function checkEdgeSupport() |
+ { |
+ var content = document.getElementById("content"); |
Sebastian Noack
2016/05/18 12:06:38
We always assign variables where they are (first)
saroyanm
2016/05/18 12:14:10
Done.
|
+ if (!window.navigator.userAgent) |
+ return; |
+ |
+ var match = window.navigator.userAgent.match(/Edge\/(\d+.\d+)/); |
+ if (match && parseFloat(match[1]) >= 14.14342 && |
+ content.classList.contains("edge")) |
+ content.classList.add("edge-supported"); |
} |
init(); |