bugfix so that HTML5 capable browsers use canvas

This commit is contained in:
DennisSchiefer 2012-08-31 07:22:57 +01:00
parent a83a3d125d
commit 618bb3ef70

View File

@ -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 );