added notifications

This commit is contained in:
Abhinav Adduri 2017-06-21 13:23:36 -07:00
parent 37f74cacfa
commit c9da5b8078
4 changed files with 23 additions and 3 deletions

View file

@ -1,4 +1,5 @@
const FileReceiver = require('./fileReceiver');
const { notify } = require('./utils');
const $ = require('jquery');
$(document).ready(function() {
@ -16,6 +17,7 @@ $(document).ready(function() {
if (percentComplete === 100) {
fileReceiver.removeAllListeners('progress');
notify('Your download has finished.');
btn.text('Download complete!');
btn.attr('disabled', 'true');
}