Commit 2bc7e30
committed
fix: toDataURL seeing data urls as paths
When given a data url `toDataURL` would try and read that as a file. This patch
adds an additional check to see if something starts with `data:` which would
indicate it is already a data URL.1 parent 211f883 commit 2bc7e30
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 88 | + | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
0 commit comments