Permalink
Browse files

make firefox compatible

  • Loading branch information...
1 parent f210485 commit 7b95df779ad087c31c5c9524a9b7cf97cba67310 @ericz ericz committed Jul 25, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 doc/start.md
  2. +1 −1 examples/helloworld/index.html
View
@@ -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);
});
});
@@ -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);
});
});

0 comments on commit 7b95df7

Please sign in to comment.