Use const variables when applicable

This commit is contained in:
2019-11-17 18:25:14 +09:00
parent 454e8572e3
commit 878f1913e3
39 changed files with 405 additions and 403 deletions

View File

@ -22,7 +22,7 @@ export default class ServiceWorkerManager {
})
// This will send a message to the service worker that the DOM has been loaded
let sendContentLoadedEvent = () => {
const sendContentLoadedEvent = () => {
if(!navigator.serviceWorker.controller) {
return
}
@ -71,7 +71,7 @@ export default class ServiceWorkerManager {
}
onMessage(evt: MessageEvent) {
let message = JSON.parse(evt.data)
const message = JSON.parse(evt.data)
switch(message.type) {
case "new notification":