# HG changeset patch # User Leonardo # Date 2013-03-07 13:38:40 # Node ID 2792019caf678f7cacdcb8ccb799ee4edecd5716 # Parent 0700ca7f6a67db77f55fa92c3c296a36ef7fae6e 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)';