mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 15:10:54 +03:00
added notifications
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user