mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Clean up white-space.
This commit is contained in:
parent
893f8fb2cc
commit
5ddcfe25b9
1 changed files with 9 additions and 9 deletions
|
@ -8,15 +8,15 @@
|
|||
<script type="text/paperscript" canvas="canvas">
|
||||
var file = document.getElementById('file');
|
||||
file.addEventListener('change', function (event) {
|
||||
var files = event.target.files;
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
var file = files[i];
|
||||
if (file.type.match('svg')) {
|
||||
project.importSVG(file, function(item) {
|
||||
console.log(item);
|
||||
});
|
||||
}
|
||||
}
|
||||
var files = event.target.files;
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
var file = files[i];
|
||||
if (file.type.match('svg')) {
|
||||
project.importSVG(file, function(item) {
|
||||
console.log(item);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue