Fix save history filename

master
Daniel Berteaud 11 years ago
parent a480375248
commit e117d73b85
  1. 4
      public/js/vroom.js

@ -268,7 +268,7 @@ function initVroom(room) {
// Save content to a file // Save content to a file
function downloadContent(filename, content){ function downloadContent(filename, content){
var blob = new Blob([content], {type: "text/html;charset=utf-8"}); var blob = new Blob([content], {type: "text/html;charset=utf-8"});
saveAs(blob, 'VROOM tchat ' + room + '.html'); saveAs(blob, filename);
} }
// Handle volume changes from our own mic // Handle volume changes from our own mic
@ -541,7 +541,7 @@ function initVroom(room) {
}); });
$('#saveChat').click(function(){ $('#saveChat').click(function(){
downloadContent('vroom_chat.html', $('#chatHistory').html()); downloadContent('VROOM Tchat (' + room + ').html', $('#chatHistory').html());
}); });
// Handle hangup/close window // Handle hangup/close window

Loading…
Cancel
Save