enable as PWA

This commit is contained in:
Ondrej Synacek 2019-10-20 20:47:19 +02:00
parent 88ae765672
commit b7d58febe8
6 changed files with 23 additions and 2 deletions

View File

@ -15,7 +15,7 @@ app.set('view engine', 'ejs')
app.set('views', path.join(__dirname, 'views'))
app.use(express.static(path.join(__dirname, 'public')))
app.use(favicon(path.join(__dirname, 'views', 'favicon.ico')))
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')))
app.use(bodyParser())
app.get('/', (req, res) => {

BIN
lib/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
lib/public/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
lib/public/icon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

20
lib/public/manifest.json Normal file
View File

@ -0,0 +1,20 @@
{
"short_name": "FB to iCal",
"name": "Facebook Event to iCal Converter",
"icons": [
{
"src":"/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src":"/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"background_color": "#fff",
"theme_color": "#fff",
"display": "standalone"
}

View File

@ -3,7 +3,8 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Facebook Events to iCal Converter</title>
<link rel="manifest" href="/manifest.json">
<title>Facebook Event to iCal Converter</title>
<style>
#current-download {
display: none;