Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jan 17, 2015
1 parent dad2b6d commit 346b1fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Streamlet

Nothing here yet
Stream stuff.

# Usage

```javascript
node server
```

# License

Expand Down
4 changes: 0 additions & 4 deletions node_modules/base64toblob/base64toblob.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions static/scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@
var byteChars = window.atob(base64);
var byteArrays = [];

console.log('h1')

for (var offset = 0, len = byteChars.length; offset < len; offset += sliceSize) {
var slice = byteChars.slice(offset, offset + sliceSize);
console.log('e')

var byteNumbers = new Array(slice.length);
for (var i = 0; i < slice.length; i++) {
Expand All @@ -48,7 +45,6 @@

byteArrays.push(byteArray);
}
console.log('h2')

return new Blob(byteArrays, {type: mime});
}
Expand Down Expand Up @@ -18660,7 +18656,7 @@ stream.pipe(through(function(data) {
a.target = '_blank';
el.appendChild(a);

if (/data:image\/(png|jpg)/gi.test(data)) {
if (/data:image\/(png|jpe?g)/gi.test(data)) {
var dv = create('div');
var img = create('img');
img.src = data;
Expand Down
2 changes: 1 addition & 1 deletion static/scripts/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ stream.pipe(through(function(data) {
a.target = '_blank';
el.appendChild(a);

if (/data:image\/(png|jpg)/gi.test(data)) {
if (/data:image\/(png|jpe?g)/gi.test(data)) {
var dv = create('div');
var img = create('img');
img.src = data;
Expand Down

0 comments on commit 346b1fb

Please sign in to comment.