hansaka1 commited on
Commit
4fd3c44
·
verified ·
1 Parent(s): 8fa34d8

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +2 -2
templates/index.html CHANGED
@@ -182,12 +182,12 @@
182
  responseType: 'blob'
183
  },
184
  success: function(response) {
185
- const blob = new Blob([response], { type: 'audio/mp3' });
186
  const downloadUrl = window.URL.createObjectURL(blob);
187
  const a = document.createElement('a');
188
  a.style.display = 'none';
189
  a.href = downloadUrl;
190
- a.download = $('#videoTitle').text() + '.mp3';
191
  document.body.appendChild(a);
192
  a.click();
193
  window.URL.revokeObjectURL(downloadUrl);
 
182
  responseType: 'blob'
183
  },
184
  success: function(response) {
185
+ const blob = new Blob([response], { type: 'video/mp4' });
186
  const downloadUrl = window.URL.createObjectURL(blob);
187
  const a = document.createElement('a');
188
  a.style.display = 'none';
189
  a.href = downloadUrl;
190
+ a.download = $('#videoTitle').text() + '.mp4';
191
  document.body.appendChild(a);
192
  a.click();
193
  window.URL.revokeObjectURL(downloadUrl);