mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-10 12:15:34 +00:00
Fix a bunch of ESLint and HTMLLint errors
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user