mirror of
https://github.com/timvisee/send.git
synced 2026-04-23 22:34:43 -04:00
Merge branch 'master' into ui
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const FileSender = require('./fileSender');
|
||||
const { notify } = require('./utils')
|
||||
const $ = require('jquery');
|
||||
|
||||
$(document).ready(function() {
|
||||
@@ -94,6 +95,9 @@ $(document).ready(function() {
|
||||
.querySelector('#progress-bar')
|
||||
.style.setProperty('--progress', percentComplete + '%');
|
||||
$('#progress-text').html(`${percentComplete}%`);
|
||||
if (percentComplete === 100) {
|
||||
notify('Your upload has finished.');
|
||||
}
|
||||
});
|
||||
fileSender.upload().then(info => {
|
||||
const url = info.url.trim() + `#${info.secretKey}`.trim();
|
||||
|
||||
Reference in New Issue
Block a user