From 618bb3ef701c9dca24434aedc2e1edfb4e69e655 Mon Sep 17 00:00:00 2001 From: DennisSchiefer Date: Fri, 31 Aug 2012 07:22:57 +0100 Subject: [PATCH] bugfix so that HTML5 capable browsers use canvas --- WebContent/qrcodes/qrcodes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebContent/qrcodes/qrcodes.js b/WebContent/qrcodes/qrcodes.js index 3e795a64a..a57371270 100644 --- a/WebContent/qrcodes/qrcodes.js +++ b/WebContent/qrcodes/qrcodes.js @@ -42,7 +42,7 @@ function createQRCode(text) { var qrsize = qrcode.getModuleCount(); // HTML5 capable browsers - if(!window.opener.OSRM.Browser.IE6_8) { + if( window.opener.OSRM.Browser.IE6_8 == -1 ) { // fill canvas var canvas = document.createElement("canvas"); canvas.setAttribute('height', dotsize*qrsize );