Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Up to 9 svgs downloaded at a time #216

Open
falali009 opened this issue Apr 30, 2019 · 2 comments
Open

Up to 9 svgs downloaded at a time #216

falali009 opened this issue Apr 30, 2019 · 2 comments

Comments

@falali009
Copy link

Stylesheet could not be loaded: file:///C:/Users/DaiZhenPeng/Desktop/hanzi-writer-master/demo/styles.css DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
at file:///C:/Users/DaiZhenPeng/Desktop/hanzi-writer-master/demo/saveSvgAsPng.js:179:30
at Array.map ()
at styleSheetRules (file:///C:/Users/DaiZhenPeng/Desktop/hanzi-writer-master/demo/saveSvgAsPng.js:177:59)
at inlineCss (file:///C:/Users/DaiZhenPeng/Desktop/hanzi-writer-master/demo/saveSvgAsPng.js:202:5)
at file:///C:/Users/DaiZhenPeng/Desktop/hanzi-writer-master/demo/saveSvgAsPng.js:270:14

i want donwload 150+ svgs in once time;

@falali009
Copy link
Author

it maybe chrome ‘s question~~ the maxdownloadnum

@lifeinchords
Copy link

lifeinchords commented Dec 6, 2019

I got this error too, with only saving one SVG at a time. My error seemed to be related to the 2 Google fonts I have in my index.html entry to Angular app

saveSvgAsPng.js:193 Stylesheet could not be loaded: https://fonts.googleapis.com/css?family=Raleway:400,500,600,700 DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

I had a similar issue with another library. Adding crossorigin="anonymous" to any CSS <link> fixed it
see: tsayen/dom-to-image#205 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants