1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-firebase-cloud-messaging/static/firebase-messaging-sw.js
2018-11-25 16:37:34 +01:00

10 lines
280 B
JavaScript

/* global importScripts, firebase */
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-app.js')
importScripts('https://www.gstatic.com/firebasejs/4.8.1/firebase-messaging.js')
firebase.initializeApp({
messagingSenderId: 'your sender id'
})
firebase.messaging()