# HG changeset patch # User Leonardo # Date 2013-03-07 14:38:40 # Node ID 729859bd1e6af6a5ca3b7c1c3493abb2df446697 # Parent 7adeca7b99c277c545094ccc9f2f5bb992c79068 Fixing graphs for IE9 and probably above. diff --git a/rhodecode/public/js/graph.js b/rhodecode/public/js/graph.js --- a/rhodecode/public/js/graph.js +++ b/rhodecode/public/js/graph.js @@ -26,7 +26,7 @@ function BranchRenderer() { this.canvas = document.getElementById("graph_canvas"); - if (navigator.userAgent.indexOf('MSIE') >= 0) + if (!document.createElement("canvas").getContext) this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); this.ctx = this.canvas.getContext('2d'); this.ctx.strokeStyle = 'rgb(0, 0, 0)';