mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
build fix
This commit is contained in:
parent
542436f38b
commit
a607223133
@ -2,7 +2,7 @@ const path = require('path')
|
||||
const fs = require('fs')
|
||||
const yaml = require('js-yaml')
|
||||
const meta = yaml.load(fs.readFileSync('./data/meta.yml', 'utf8'))
|
||||
const { url, matomoSite, matomoUrl, title, tagline } = meta
|
||||
const { url, matomoSite, matomoUrl, title } = meta
|
||||
|
||||
module.exports = {
|
||||
siteMetadata: {
|
||||
|
14
static/sw.js
14
static/sw.js
@ -1,14 +0,0 @@
|
||||
self.addEventListener('install', function() {
|
||||
self.skipWaiting()
|
||||
})
|
||||
|
||||
self.addEventListener('activate', function() {
|
||||
self.registration
|
||||
.unregister()
|
||||
.then(function() {
|
||||
return self.clients.matchAll()
|
||||
})
|
||||
.then(function(clients) {
|
||||
clients.forEach(client => client.navigate(client.url))
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user