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

Unified Diff: static/js/index.js

Issue 29541876: Noissue - Always show "Install" button for Microsoft Edge (Closed)
Patch Set: Always show button Created Sept. 12, 2017, 8:29 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
« includes/index.tmpl ('K') | « static/css/index.css ('k') | 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
@@ -1,7 +1,7 @@
(function()
{
var visibleTab;
- var container;
+ var container = document.getElementById("more-container");
window.toggleMore = function()
{
@@ -25,23 +25,4 @@
visibleTab = ua && ua[1] || "firefox";
return visibleTab;
}
-
- 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 && match[1] >= 14361 && content.classList.contains("edge"))
- content.classList.add("edge-supported");
- }
-
- init();
})();
« includes/index.tmpl ('K') | « static/css/index.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld