Skip to content

Commit

Permalink
Replaced var keyword with let/const, this fixes #11473 (#11476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josephsanya authored Oct 13, 2022
1 parent f96b4af commit 1ed53db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions public/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ self.onnotificationclick = function (event) {
clients.matchAll({
type: "window"
}).then(function(clientList) {
for (var i = 0; i < clientList.length; i++) {
var client = clientList[i];
for (let i = 0; i < clientList.length; i++) {
let client = clientList[i];
if (client.url == '/' && 'focus' in client)
return client.focus();
}
Expand All @@ -16,5 +16,4 @@ self.onnotificationclick = function (event) {
}
})
);

};
};

0 comments on commit 1ed53db

Please sign in to comment.