mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
10 lines
280 B
JavaScript
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()
|