run eslint to fix most var instances
This commit is contained in:
parent
24699c0aca
commit
39eddeb205
55 changed files with 614 additions and 614 deletions
|
@ -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('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue