Fix a bunch of ESLint and HTMLLint errors

This commit is contained in:
Peter deHaan 2017-06-20 12:18:14 -07:00
parent 99d7196799
commit 74c41897ad
11 changed files with 669 additions and 806 deletions

View file

@ -0,0 +1,3 @@
env:
browser: true
jquery: true

View file

@ -1,5 +1,5 @@
const EventEmitter = require('events');
const { ivToStr, notify } = require('./utils');
const { ivToStr } = require('./utils');
class FileSender extends EventEmitter {
constructor(file) {

View 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)