Skip to content

Commit

Permalink
client: no jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed May 18, 2014
1 parent 26f2cfa commit 198dd92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ $(document).keydown(function(ev) {
ev.preventDefault();
var qemuKey = keymap.qemukey(ev.keyCode);
if(qemuKey) {
console.log(qemuKey);
io.emit('keydown', qemuKey);
}
});
Expand Down Expand Up @@ -192,8 +191,8 @@ io.on('frame', function(frame) {
URL.revokeObjectURL(lastImage);
}

image.attr('src', blobToImage(frame));
lastImage = image.attr('src');
image[0].src = blobToImage(frame);
lastImage = image[0].src;
getDimensions(image);
});

Expand Down

0 comments on commit 198dd92

Please sign in to comment.