| 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() |
| + { |
| + if (!window.navigator.userAgent) |
| + return; |
| + |
| + var content = document.getElementById("content"); |
| + var match = window.navigator.userAgent.match(/Edge\/(\d+.\d+)/); |
| + if (match && parseFloat(match[1]) >= 14.14342 && |
|
Oleksandr
2016/05/18 12:53:15
14 is a version of an EdgeHTML. 14342 is a Windows
Sebastian Noack
2016/05/18 12:57:25
Yeah, I agree. However, it seems, the change alrea
|
| + content.classList.contains("edge")) |
| + content.classList.add("edge-supported"); |
| } |
| init(); |