run eslint to fix most var instances

This commit is contained in:
dkanada 2020-10-07 21:12:14 +09:00
parent 24699c0aca
commit 39eddeb205
55 changed files with 614 additions and 614 deletions

View file

@ -2,7 +2,7 @@
(function () {
'use strict';
var connectionManager;
let connectionManager;
function getApiClient(serverId) {
if (connectionManager) {
@ -28,12 +28,12 @@
/* eslint-disable-next-line no-restricted-globals -- self is valid in a serviceworker environment */
self.addEventListener('notificationclick', function (event) {
var notification = event.notification;
const notification = event.notification;
notification.close();
var data = notification.data;
var serverId = data.serverId;
var action = event.action;
const data = notification.data;
const serverId = data.serverId;
const action = event.action;
if (!action) {
clients.openWindow('/');