INNER CODE UNIT · JavaScript

id

JetBrains/kotlinconf-app · app/webApp/src/webMain/resources/service-worker.js:67

        const id = setTimeout(() => {
          self.registration.showNotification(event.data.title, { body: event.data.body });
          map.delete(event.data.notificationId)
        }, event.data.delay)
        map.set(event.data.notificationId, id)
    }
    if (event.data.command === 'cancel-notification') {
        const id = map.get(event.data.notificationId)
        if (id != undefined) {
            clearTimeout(id)
            map.delete(event.data.notificationId)
        }
    }
  });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…