html2canvas
Advanced tools
Comparing version 1.0.0-alpha.10 to 1.0.0-alpha.11
### Changelog ### | ||
#### v1.0.0-alpha.11 - 1.4.2018 #### | ||
* Fix IE11 member not found error | ||
* Support blob image resources in non-foreignObjectRendering mode | ||
#### v1.0.0-alpha.10 - 15.2.2018 #### | ||
@@ -4,0 +8,0 @@ * Re-introduce `onclone` option (Fix #1434) |
@@ -213,3 +213,11 @@ 'use strict'; | ||
var css = [].slice.call(node.sheet.cssRules, 0).reduce(function (css, rule) { | ||
return css + rule.cssText; | ||
try { | ||
if (rule && rule.cssText) { | ||
return css + rule.cssText; | ||
} | ||
return css; | ||
} catch (err) { | ||
_this3.logger.log('Unable to access cssText property', rule.name); | ||
return css; | ||
} | ||
}, ''); | ||
@@ -216,0 +224,0 @@ var style = node.cloneNode(false); |
@@ -40,2 +40,6 @@ 'use strict'; | ||
} | ||
if (isBlobImage(src)) { | ||
this.cache[src] = _loadImage(src, this.options.imageTimeout || 0); | ||
return src; | ||
} | ||
@@ -240,2 +244,5 @@ if (!isSVG(src) || _Feature2.default.SUPPORT_SVG_DRAWING) { | ||
}; | ||
var isBlobImage = function isBlobImage(src) { | ||
return src.substr(0, 4) === 'blob'; | ||
}; | ||
@@ -242,0 +249,0 @@ var isSVG = function isSVG(src) { |
@@ -6,3 +6,3 @@ { | ||
"main": "dist/npm/index.js", | ||
"version": "1.0.0-alpha.10", | ||
"version": "1.0.0-alpha.11", | ||
"author": { | ||
@@ -9,0 +9,0 @@ "name": "Niklas von Hertzen", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1136026
22336