✨ (notification) add vibration
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="dream-maker">
|
||||
<h2>Coder {{ position }}</h2>
|
||||
<h2>code {{ position }}</h2>
|
||||
<h4 v-show="isTurn">{{ session }}</h4>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -5,11 +5,10 @@ import { register } from 'register-service-worker'
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||
ready(sw) {
|
||||
console.log(
|
||||
'App is being served from cache by a service worker.\n' +
|
||||
'For more details, visit https://goo.gl/AFskqB'
|
||||
)
|
||||
sw.showNotification('Coucou')
|
||||
console.log('App is being served from cache by a service worker')
|
||||
sw.showNotification('Session started!', {
|
||||
vibrate: [300, 100, 400]
|
||||
})
|
||||
},
|
||||
registered() {
|
||||
console.log('Service worker has been registered.')
|
||||
|
||||
Reference in New Issue
Block a user