Browse Source

Fixed webapp manifest

Fixes #1306
master
Igor Zhukov 7 years ago
parent
commit
d6d84bc835
  1. 3
      app/manifest.json
  2. 18
      app/manifest.webapp.json
  3. 2
      gulpfile.js

3
app/manifest.json

@ -4,9 +4,6 @@ @@ -4,9 +4,6 @@
"version": "0.5.5",
"short_name": "Telegram",
"manifest_version": 2,
"display": "standalone",
"orientation": "portrait",
"theme_color": "#497495",
"app": {
"background": {
"scripts": ["js/background.js"]

18
app/manifest.webapp.json

@ -1,12 +1,13 @@ @@ -1,12 +1,13 @@
{
"name": "Telegram",
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.5.5",
"short_name": "Telegram",
"display": "standalone",
"orientation": "portrait",
"theme_color": "#497495",
"gcm_sender_id": "122867383838",
"start_url": "./?utm_source=web_app_manifest",
"scope": "/",
"background_color": "#fff",
"icons": [
{
"src": "img/icons/icon16.png",
@ -50,8 +51,19 @@ @@ -50,8 +51,19 @@
},
{
"src": "img/icons/icon.svg",
"type": "image/svg",
"type": "image/svg+xml",
"sizes": "513x513"
}
],
"related_applications": [
{
"platform": "play",
"id": "org.telegram.messenger",
"url": "https://telegram.org/dl/android?ref=webmanifest"
},
{
"platform": "itunes",
"url": "https://telegram.org/dl/ios?ref=webmanifest"
}
]
}

2
gulpfile.js

@ -76,7 +76,7 @@ gulp.task('copy-images', function () { @@ -76,7 +76,7 @@ gulp.task('copy-images', function () {
gulp.task('copy', function () {
return es.concat(
gulp.src(['app/favicon.ico', 'app/favicon_unread.ico', 'app/manifest.webapp', 'app/manifest.json', 'app/**/*worker.js'])
gulp.src(['app/favicon.ico', 'app/favicon_unread.ico', 'app/manifest.webapp', 'app/manifest.webapp.json', 'app/manifest.json', 'app/**/*worker.js'])
.pipe(gulp.dest('dist')),
gulp.src(['app/img/**/*.wav'])
.pipe(gulp.dest('dist/img')),

Loading…
Cancel
Save