Comparing version 0.1.6 to 0.1.7
export {default} from './src/svgsaver'; |
{ | ||
"name": "svgsaver", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "download an SVG element with css styles", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ svgsaver | ||
*For maximum compatibility across browsers include [eligrey/FileSaver.js/](https://github.com/eligrey/FileSaver.js) and [eligrey/canvas-toBlob.js](https://github.com/eligrey/canvas-toBlob.js)*. | ||
*For maximum compatibility across browsers include [eligrey/FileSaver.js/](https://github.com/eligrey/FileSaver.js) and [eligrey/canvas-toBlob.js](https://github.com/eligrey/canvas-toBlob.js). See [Compatibility-Chart](https://github.com/Hypercubed/svgsaver/wiki/Compatibility-Chart) for more information.* | ||
@@ -16,0 +16,0 @@ ### Example |
@@ -0,0 +0,0 @@ export var svgStyles = { // Whitelist of CSS styles and default values |
@@ -129,4 +129,6 @@ import saveAs from 'html5-filesaver.js'; | ||
var html = this.getHTML(el); | ||
return 'data:image/svg+xml;base64,' + window.btoa(html); | ||
//return "data:image/svg+xml," + encodeURIComponent(html); | ||
if (isDefined(window.btoa)) { | ||
return 'data:image/svg+xml;base64,' + window.btoa(html); | ||
} | ||
return "data:image/svg+xml," + encodeURIComponent(html); | ||
} | ||
@@ -133,0 +135,0 @@ |
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
34929
11
473