Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/js/index.js

Issue 29342791: Issue 4027 - Check only for windows build number (Closed)
Patch Set: Created May 18, 2016, 1:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/js/index.js
===================================================================
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -38,9 +38,8 @@
return;
var content = document.getElementById("content");
- var match = window.navigator.userAgent.match(/Edge\/(\d+.\d+)/);
- if (match && parseFloat(match[1]) >= 14.14342 &&
- content.classList.contains("edge"))
+ var match = window.navigator.userAgent.match(/Edge\/\d+\.(\d+)/);
+ if (match && match[1] >= 14342 && content.classList.contains("edge"))
content.classList.add("edge-supported");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld