UNPKG

pushkit

Version:

Everything you need to enable Web Push Notification in your Node.JS web application. Uses the browser's delivery channel to send push notification(Free of cost), which means no extra third-party service (except for the browser's own delivery channel). Wor

7 lines 324 B
importScripts("https://unpkg.com/pushkit@3.2.1/worker/binding.js"); // importScripts("binding.js"); var pushConfig = { icon : "https://theanam.github.io/pushkit/pushkit.png", badge : "https://theanam.github.io/pushkit/pushkit.png" } attachPushKit(self, pushConfig, "Pushkit", "http://localhost:1234", null, true);