Fix a bunch of ESLint and HTMLLint errors
This commit is contained in:
parent
99d7196799
commit
74c41897ad
11 changed files with 669 additions and 806 deletions
3
frontend/src/.eslintrc.yml
Normal file
3
frontend/src/.eslintrc.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
env:
|
||||
browser: true
|
||||
jquery: true
|
|
@ -1,5 +1,5 @@
|
|||
const EventEmitter = require('events');
|
||||
const { ivToStr, notify } = require('./utils');
|
||||
const { ivToStr } = require('./utils');
|
||||
|
||||
class FileSender extends EventEmitter {
|
||||
constructor(file) {
|
||||
|
|
|
@ -21,7 +21,7 @@ function strToIv(str) {
|
|||
}
|
||||
|
||||
function notify(str) {
|
||||
if (!("Notification" in window)) {
|
||||
if (!('Notification' in window)) {
|
||||
return;
|
||||
} else if (Notification.permission === 'granted') {
|
||||
new Notification(str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue