Auto-format files using 'npm run format'
This commit is contained in:
parent
74c41897ad
commit
c532ea4770
6 changed files with 14 additions and 12 deletions
|
@ -23,7 +23,7 @@ class FileSender extends EventEmitter {
|
|||
}
|
||||
|
||||
if (xhr.status === 200) {
|
||||
console.log('The file was successfully deleted.')
|
||||
console.log('The file was successfully deleted.');
|
||||
} else {
|
||||
console.log('The file has expired, or has already been deleted.');
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const FileSender = require('./fileSender');
|
||||
const { notify } = require('./utils')
|
||||
const { notify } = require('./utils');
|
||||
const $ = require('jquery');
|
||||
|
||||
$(document).ready(function() {
|
||||
|
|
|
@ -24,12 +24,11 @@ function notify(str) {
|
|||
if (!('Notification' in window)) {
|
||||
return;
|
||||
} else if (Notification.permission === 'granted') {
|
||||
new Notification(str)
|
||||
new Notification(str);
|
||||
} else if (Notification.permission !== 'denied') {
|
||||
Notification.requestPermission(function(permission) {
|
||||
if (permission === 'granted')
|
||||
new Notification(str);
|
||||
})
|
||||
if (permission === 'granted') new Notification(str);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue