qrcode.react
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -0,1 +1,7 @@ | ||
## [0.9.3] - 2019-02-17 | ||
### Fixed | ||
- Updated Path2D detection to exclude browsers which don't support string constructor (Edge). | ||
## [0.9.2] - 2019-01-03 | ||
@@ -2,0 +8,0 @@ |
@@ -134,7 +134,17 @@ 'use strict'; | ||
// the environment supports Path2D. We only need the constructor to be | ||
// supported. | ||
// supported, but Edge doesn't actually support the path (string) type | ||
// argument. Luckily it also doesn't support the addPath() method. We can | ||
// treat that as the same thing. | ||
var SUPPORTS_PATH2D = typeof Path2D === 'function'; | ||
var SUPPORTS_PATH2D = function () { | ||
try { | ||
new Path2D().addPath(new Path2D()); | ||
} catch (e) { | ||
return false; | ||
} | ||
return true; | ||
}(); | ||
var QRCodeCanvas = | ||
@@ -141,0 +151,0 @@ /*#__PURE__*/ |
{ | ||
"name": "qrcode.react", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "React component to generate QR codes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
20280
286