Skip to content

Commit

Permalink
make firefox compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Jul 25, 2012
1 parent f210485 commit 7b95df7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ client.on('stream', function(stream, meta){
});
stream.on('end', function(){
var img = document.createElement("img");
img.src =(webkitURL||URL).createObjectURL(new Blob(parts));
img.src = (window.URL || window.webkitURL).createObjectURL(new Blob(parts));
document.body.appendChild(img);
});
});
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
stream.on('end', function(){
// Display new data in browser!
var img = document.createElement("img");
img.src =(webkitURL||URL).createObjectURL(new Blob(parts));
img.src = (window.URL || window.webkitURL).createObjectURL(new Blob(parts));
document.body.appendChild(img);
});
});
Expand Down

0 comments on commit 7b95df7

Please sign in to comment.