Skip to content

Commit 688b0a7

Browse files
authored
Merge pull request rails#52637 from jlduran/cleanup-service-worker-white-space
Cleanup service-worker.js trailing white space
2 parents 2044084 + aa8335f commit 688b0a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

railties/lib/rails/generators/rails/app/templates/app/views/pwa/service-worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
// const { title, options } = await event.data.json()
55
// event.waitUntil(self.registration.showNotification(title, options))
66
// })
7-
//
7+
//
88
// self.addEventListener("notificationclick", function(event) {
99
// event.notification.close()
1010
// event.waitUntil(
1111
// clients.matchAll({ type: "window" }).then((clientList) => {
1212
// for (let i = 0; i < clientList.length; i++) {
1313
// let client = clientList[i]
1414
// let clientPath = (new URL(client.url)).pathname
15-
//
15+
//
1616
// if (clientPath == event.notification.data.path && "focus" in client) {
1717
// return client.focus()
1818
// }
1919
// }
20-
//
20+
//
2121
// if (clients.openWindow) {
2222
// return clients.openWindow(event.notification.data.path)
2323
// }

0 commit comments

Comments
 (0)