This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const array = [ | |
"zero", | |
"one", | |
"two", | |
"three", | |
"four", | |
"five", | |
"six", | |
"seven", | |
"eight", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importScripts('https://www.gstatic.com/firebasejs/7.17.1/firebase-app.js'); | |
importScripts( | |
'https://www.gstatic.com/firebasejs/7.17.1/firebase-messaging.js' | |
); | |
firebase.initializeApp({ | |
apiKey: '', | |
projectId: '', | |
messagingSenderId: '', | |
appId: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as firebase from 'firebase/app'; | |
import 'firebase/messaging'; | |
if (!firebase.apps.length) { | |
firebase.initializeApp({ | |
apiKey: '', | |
projectId: '', | |
messagingSenderId: '', | |
appId: '' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: [ | |
'~plugins/firebase' | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template></template> | |
<script> | |
import firebase from '../plugins/firebase'; | |
export defautl { | |
created() { | |
const messaging = firebase.messaging(); | |
messaging | |
.requestPermission() | |
.then(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template></template> | |
<script> | |
import firebase from '../plugins/firebase'; | |
export defautl { | |
created() { | |
const messaging = firebase.messaging(); | |
messaging | |
.requestPermission() | |
.then(() => { |
OlderNewer